Open RankoR opened 4 years ago
Isn't 503 temporarily unavailable?
503 SERVICE UNAVAILABLE
The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay
Do you think the server's fault in here? It looks like not on our fault? Can you see the server's log what wrong over there?
@kittinunf curl request, generated by Fuel, works fine. Manually built HttpsUrlConnection request works fine too.
I think that server does not handle wrong request properly and responds with 503 instead of 400, but anyway Fuel seems to send wrong data.
I don't have server logs, this server belongs to Yandex.
I wanted to send bug report to Yandex too (because they do not handle bad requests properly), but I can't, because I can't see full raw request (Fuel debug logs are not enough)
True dat! Please allow me to investigate on this, I will create the yandex account and investigate.
I have the same issue here.
And yeah, the backend is Yandex.Cloud (Yandex Translate API).
I guess they reinvented the wheel one more time since it's that specific :)
OS: Windows 11 Pro Insider Preview 22454.1000 IDE: IDEA 2021.2.1 Fuel version: 2.3.1 Kotlin version: 1.5.21
Bug Report
Description
I have this code:
jwtPayload
is a JSON string like{"jwt": "..."}
If I call
request.cUrlString()
, and execute curl command from the output, it works fine:But the Fuel's request ends with backend's 503 error:
Simple
HttpsUrlConnection
implementation also works fine:Environment
Development Machine