Am I the only one getting it in txt format but not json? How can I fix it?
Please use an HTTP client such as : postman.com to test the endpoint. I cannot help you with coding.
Regards.
But it gives an error saying “Unexpected end of JSON input” when I assign the content-type to application/json and convert it to the json() asynchronously. Any idea?
content-type must be “application/json”
Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:
Please use an HTTP client such as : postman.com to test the endpoint. I cannot help you with coding.
Regards.
But it gives an error saying “Unexpected end of JSON input” when I assign the content-type to application/json and convert it to the json() asynchronously. Any idea?
content-type must be “application/json”