question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Only absolute URLs are supported

See original GitHub issue

Using 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:closed
  • Created 5 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
vincentvellacommented, Mar 28, 2019

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.

3reactions
gabrielrusscommented, Sep 22, 2019

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 with const { prisma } = require('./generated/prisma') but I had them in the wrong order. You have to put the dotenv config BEFORE the prisma declaration.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found