-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Next Auth is throwing TypeError Invalid URL at build time in the gitlab pipelines right after => info - Collecting page data... #6479
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
I have the same issue with github actions, when I switched to next-auth (with iron-session the deployment was running fine)
Those issues shouldn't be closed |
I am getting a similar issue when I try to build using docker compose
|
In my case it was |
Environment
System:
OS: macOS 12.6
CPU: (8) x64 Apple M1
Memory: 86.33 MB / 16.00 GB
Shell: 3.2.57 - /bin/sh
Binaries:
Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
npmPackages:
next: ^11.1.0 => 11.1.0
next-auth: 4.5.0 => 4.5.0
react: ^17.0.2 => 17.0.2
Reproduction URL
https://unavailable.com
Describe the issue
Hi,
I wonder if anyone ever get this error:
javascript TypeError [ERR_INVALID_URL]: Invalid URL
I've started seeing this after I've upgraded NextAuth to v4 due to issues around cookie size limit. In version 4 there's cookie chunk implementation which is great. The issue now is that although everything works fine on local env in the Gitlab pipeline it fails right before providing the page reports and finalising the build.
Unfortunately upgrading to next v12 and above won't work because of the Webpack 4 as it's not supported anymore in newer version. Upgrading to Webpack 5 it's bringing issues with the collocated test files etc. The application will be upgraded but incrementally and for now I would like to know if there's any way we can have a more verbose debug logging because
javascript TypeError [ERR_INVALID_URL]: Invalid URL
it doesn't help at all.
To mention that NEXTAUTH_SECRET was added to the project during next-auth v4 upgrade.
Anyone can step in and provide some info on how this can be debugged further more?
Thanks a lot!
How to reproduce
This error only happens in the Gitlab pipelines and I can't seem to think an easy way to reproduce it nor I can't seem to get more details around the error as it's very vague.
Expected behavior
Should allow to successfully build the project
The text was updated successfully, but these errors were encountered: