Hello,
I'm trying to make a http POST request, and receive the result into another report. This is my code:
select 'dbr.http.option', 'curl', 'CURLOPT_HTTPHEADER', 'accept: */*';
select 'dbr.http.option', 'curl', 'CURLOPT_HTTPHEADER', 'Content-Type: application/json';
select 'dbr.report', 'sp_DBR_sync_sling_shifts', 'inPostJson=post_data','inParamJson=p_json';
select 'dbr.http.post', @token_url, @user as "email", @password as "password", json_object('stage', 'got_token') as p_json;
But I get a 500 server error when I open the report. What's causing this? If I don't try to call the report with "dbr.report", the result of the request is shown in the report, and if I don't try to pass "post_data" into "sp_DBR_sync_sling_shifts" but still call it, there is no problem. So the issue is that i'm unable to pass in post_data.
Note that the returned data of the POST request is pretty large.
How can I fix this?