TypeError: Only absolute URLs are supported
See original GitHub issueUsing the node-auth example on Ubuntu 18.04. When I start the project and try to query on my localhost playground, I get
Server is running on http://localhost:4000
TypeError: Only absolute URLs are supported
This is just a straight install from the example
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Next.js - Error: only absolute urls are supported - Stack Overflow
It means you are trying to export data and NextJS does not support fetching data from pages/api/* directory. To avoid errors, its better...
Read more >Error: only absolute urls are supported · Issue #481 - GitHub
It looks like there's something wrong with the URL in the fetch method. For me, it solved by changing url in the fetch...
Read more >TypeError Only absolute URLs are supported - Pipedream
It looks like the workflow expects to talk to a Microsoft service - is that right? It looks like it expects other environment...
Read more >TypeError: Only absolute URLs are supported : r/nextjs - Reddit
When trying to deploy to Vercel: TypeError: Only absolute URLs are supported : r/nextjs.
Read more >Vercel / NextJS Error Prerendering index. "Only absolute ...
When trying to deploy my DatoCMS project on Vercel, I keep getting an error that it won't accept absolute links. In my dev...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wild guess but are you using dotenv to set those environment variables? I was having the same problem and removing the ${env:PRISMA_ENDPOINT} variable that I had in the prisma.yml file solved my issue.
I would just like to add to this just in case someone else comes along with my same problem. I had
require('dotenv').config()
in my file along withconst { prisma } = require('./generated/prisma')
but I had them in the wrong order. You have to put the dotenv config BEFORE the prisma declaration.