Getting "422 (Unprocessable Entity)" error while triggering "run_sql_query" API from the Extension

Hi,

We created a Looker extension using ReactJS and embed Looker dashboard in it.

I was trying to interact the snowflakeDB (Which is connected to fetch data for dashboard). Created a function were I am triggering “create_sql_query” and “run_sql_query”. “create_sql_query” is running and getting response with slug. But while calling “run_sql_query” the API getting error. Please find the screenshots below,

Could anyone please help me on this. 

JS code:

b7f6c2dc-cbfe-4dd6-a929-14590eb96ba4.png

Browser Console:

599c1b0e-a3c1-49a0-8400-ce95b359fce8.png

Browser Network Tab:

48b38ce1-3975-4aa3-b17d-adff84b6a91f.png

Getting response for “create_sql_query”:

114e860d-a4ee-477a-9240-2ce7cea1be2e.png

getting error for “run_sql_query”:

2d7778e8-586e-4bda-bd39-cf3bc1303069.png
f9e07f24-df66-4b28-989b-129ebfdccc03.png
0 1 1,041
1 REPLY 1

The issue is resolved .  Its a coding mistake from my side. The issue was with the request. Tried “inline_json” instead of “AuditTraildata” its getting response. Understood that we need to specify the result format there.