500: Only absolute URLs
Unanswered
West African Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
West African LionOP
This is probably a beginner mistake. I have an app at crud-with-forms.vercel.app. I'm doing GraphQL queries and mutations using server on a separate file in my components, since the page.tsx is using client. Everything works locally. When I deploy only the queries will work correctly and the mutations keep returning 500. I only have one page route. But there's something going wrong when posting form data from that page. Anyone else run into this before?
10 Replies
![Avatar](https://cdn.discordapp.com/avatars/1053443057451794585/e11a0f3625ffde367560e0dd06797c0d.webp?size=256)
!=tgt
What is your code?
and are there logs in vercel
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
West African LionOP
Hey thanks, yes my code is on Github: https://github.com/ryanjames1729/crud-with-forms. I using the runtime logs in Vercel to find the 500 error.
![Image](https://cdn.discordapp.com/attachments/1209592931430834226/1209598592378081350/image.png?ex=65e78179&is=65d50c79&hm=004c5b1093046d2164937873a92b7ec562328f32e24ed74cff9740a9218eeb15&)
Line 108 makes the function call to the async function that is included in my Results.tsx file.
![Image](https://cdn.discordapp.com/attachments/1209592931430834226/1209599155824238673/image.png?ex=65e78200&is=65d50d00&hm=d79e7aacf3a75e129708963278e62c6cb46df9f113c7c8c7fcb0b40ae8ad7f12&)
//Results.tsx file shown
![Image](https://cdn.discordapp.com/attachments/1209592931430834226/1209599383834730566/image.png?ex=65e78236&is=65d50d36&hm=de57334922169510151aac6a0aa3098277c1676fc65ffd79cabf8b4ac3a85671&)
![Avatar](https://cdn.discordapp.com/avatars/1053443057451794585/e11a0f3625ffde367560e0dd06797c0d.webp?size=256)
!=tgt
How is graphql configured
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
West African LionOP
@!=tgt I'm using Hygraph, already setup the public endpoint and tokens that are in the .env.local file and added those to Netlify environment variables.
![Avatar](https://cdn.discordapp.com/avatars/1053443057451794585/e11a0f3625ffde367560e0dd06797c0d.webp?size=256)
!=tgt
does the public endpoint include a hostname or is it just the relative path?
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
West African LionOP
Public endpoint includes hostname: https://api-us-east-1-shared-usea1-02.hygraph.com/v2/clsnkcosn0v9001w60dp36wv4/master