• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN HTTP Get request

Status
Not open for further replies.
Try to add the parameter "maxSize" to the http request and use the value 1024*1024*5 for example. :)
 
Where ?
If u mean
Code:
method (string) the verb to use, e.g. GET, POST, PUT and so on
url (string) the url to send the request to
timeout (int) the maximum time to wait for an answer in ms. Max. 60000.
body (string) the body to send on POST, PUT or PATCH calls
username (string) if you want to use basic auth, you can specify the username here
password (string) if you want to use basic auth, you can specify the password here
headers ([string]string) an object specifying additional headers; like {"Content-Type": "text/plain"}
like method, url... then it doesnt work
 
Doesn't work for my API Url
Code:
 SyntaxError: unexpected end of JSON input
    at parse (<native code>)
But thanks anyway
 
Doesn't work for my API Url
Code:
SyntaxError: unexpected end of JSON input
at parse (<native code>)
But thanks anyway

So your API return's invalid JSON. This isn't a Bot Problem.
 
Status
Not open for further replies.
Back
Top Bottom