API gateway gives status 200 but browser reports error 403

0

I am testing my API gateway to S3 bucket via a simple HTTP webform to upload an image. The web browser reports failed to load resource. However I have enabled logging on the API gateway and it is saying status 200 successful. The bucket itself has public access alllowed for now. The browser side console also states "missing authentication token". Now I'm wondering if the token is needed for the API gateway or S3?

gefragt vor 2 Monaten142 Aufrufe
3 Antworten
1
Akzeptierte Antwort

This error sometimes means that you are calling the wrong endpoint in the API. I would recommend that you enable API Gateway Execution Logs to see what is happening.

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
0

Hi Uri - will give that a try. I've got logging turnied on with the default settings - I'll try to add everything and see.

beantwortet vor 2 Monaten
0

Hi Urr, I've tested it again with the front end I am designing in Android Studio/Kotlin and the gateway is working perfectly with requests sent from there. Obviosly a problem with the html in the webform. we can close this

beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen