Skip to content

internal server error when trying to upload a file. #34

@simonprudhomme

Description

@simonprudhomme

Hey,

I just spent a few hours on the YouTube video and tutorial. Great work! However, I need help at this point.

My dev setup:

I clone this repo on my MacOS M1.

Description of the error:

When I try to upload a document, I get an error: internal server error
Here is my request:
curl -X POST -F 'file=@./test.mkv' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6InNpbW9ucHJ1ZGhvbW1lQGdtYWlsLmNvbSIsImV4cCI6MTcxMDE1ODUyNCwiaWF0IjoxNzEwMDcyMTI0LCJhZG1pbiI6dHJ1ZX0.no2pRm__ILHtMKtsWlg1yTxXS5yJllGtAed9HZJgEyo' http://mp3converter.com/upload

I am able to acquire a token.
In the gateway pod logs in k9s I see that the requests for POST /login -> 200 and POST /upload -> 500.
The minikube tunnel is always open, I have all the services running. The queues are define in RabbitMQ Managment.
Also, I reset the gateway service to try to reconnect it to rabbitmq, as explained in the video.

rabbit/manifests/ingress.yaml:
Screenshot 2024-03-10 at 8 13 57 AM

rabbit/manifests/service.yaml:
Screenshot 2024-03-10 at 8 14 28 AM

gateway/server.p
Screenshot 2024-03-10 at 8 16 37 AM
y:

RabbitMQ Management
Screenshot 2024-03-10 at 8 17 20 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions