You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was forced to replace method above with client.logoutWithRequest(logoutRequest); witch is basicly the same so it dont change anything but its still a bug
problem:
when calling client.logout(true, "refreshtokien here") i get exception that api consumes only application/json but api sends plain/text
method:
exception:
{
"statusCode": 400,
"exception": {
"fieldErrors": {},
"generalErrors": [
{
"code": "[InvalidContentType]",
"message": "Invalid [Content-Type] HTTP request header value of [text/plain]. Supported values for this request include [application/json]."
}
]
}
}
The text was updated successfully, but these errors were encountered:
If you omit the Content-Type request header, does it work ok?
I think the issue is in our builder, I think this was a carry over from native JavaScript where the browser doesn't want to make a POST request w/out a content type header. But I don't think we need this in TypeScript.
i was forced to replace method above with
client.logoutWithRequest(logoutRequest);
witch is basicly the same so it dont change anything but its still a bugproblem:
when calling
client.logout(true, "refreshtokien here")
i get exception that api consumes only application/json but api sends plain/textmethod:
exception:
The text was updated successfully, but these errors were encountered: