vohoanvu / CS361-Assignment-8

PDF Exporter microservice
https://myassignment8-agf6b9a7bfhdgnar.eastasia-01.azurewebsites.net/
0 stars 0 forks source link

Receiving Status Code 431 (Request Header Fields Too Large) when Fetching Data #1

Open ethandavidlee opened 1 month ago

ethandavidlee commented 1 month ago

Screenshot 2024-08-10 172400

I'm getting a status code 431 when making a fetch request to the microservice, indicating that the headers are too long. This is likely because of the length of the itinerary section. I noticed on your example call you only wrote a shortened version of the itinerary. I think you will need to fetch the full itinerary from MongoDB in the microservice using the username and password I gave you in our Discord chat, rather than asking for it as part of the fetch.

Here is my code for reference: image

vohoanvu commented 1 month ago

The new POST endpoint is now functional and live on Azure Screenshot 2024-08-10 204220

ethandavidlee commented 1 month ago

An additional issue related to CORS image

I tried sending the request with mode: 'no-cors', but then I get a status code 0