Problem with empty body in HTTP Request
I think I found a bug. I tried to get information about my Dropbox account: (documentation)
Task: Get Dropbox Space Usage
A1: HTTP Request [
Method: POST
URL: https://api.dropboxapi.com/2/users/get_current_account
Headers: Authorization:Bearer %token
Content-Type: application/json
Timeout (Seconds): 30
Trust Any Certificate: On
Automatically Follow Redirects: On
Structure Output (JSON, etc): On
Continue Task After Error:On ]
A2: Flash [
Text: %http_data
Long: On
Continue Task Immediately: On
Dismiss On Click: On ]
%token
, of course is set in task's settings. But I got an error:
18.25.12/E add wait type EasyAction2 time 2147483647
18.25.12/E add wait type EasyAction2 done
18.25.12/E add wait task
18.25.12/E Error: 1
18.25.12/E Error in call to API function "users/get_current_account": request body: could not decode input as JSON
So I put brackets {}
in body, and got another error:
18.26.11/E add wait type EasyAction1 time 2147483647
18.26.11/E add wait type EasyAction1 done
18.26.11/E add wait task
18.26.11/E Error: 1
18.26.11/E Error in call to API function "users/get_current_account": request body: expected null, got value
How to deal with it?