Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 when posting recipes to API #33

Open
zchef2k opened this issue Apr 15, 2020 · 1 comment
Open

500 when posting recipes to API #33

zchef2k opened this issue Apr 15, 2020 · 1 comment

Comments

@zchef2k
Copy link

zchef2k commented Apr 15, 2020

I'm trying to incorporate a scraper into my project, but when trying to post recipes to the API I always get a 500 error.

<head>
    <title>500 Error</title>
</head>
<body>
    <p>Something has really broke congrats for breaking it!  The admins of the site have been notified of the issue and are activly working on it.</p>
</body>

I know I'm authenticating and sending valid requests because when I omit certain fields that are required, the API is validating the requests and I can see it in the repsonse. However, when all requirements are (seemingly) met, I get a 500.

Is there any way to debug this on the API side? I am running web and api in containers, proxy as a separate apache container with upstream haproxy help. Everything else seems to work fine.

Thanks.

-z

@RyanNoelk
Copy link
Member

What I would recommend is, with chromes dev tools open, creating a recipe via the UI. If you then look at the network tab of chrome dev tools you should be able to see the request that was made. You can then copy the request as CURL (or any option you prefer) right from the dev tools.

The other option would be to run the API in development mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants