Back

Isuues while logging in

  • 1
  • Web
Avin
18 Jul, 2024, 15:41

TypeError: Failed to construct 'URL': Invalid URL at Gk.<anonymous> (index-DUmuG3IN.js:40:74171) at Generator.next (<anonymous>) at index-DUmuG3IN.js:40:58080 at new Promise (<anonymous>) at se (index-DUmuG3IN.js:40:57880) at Gk.createEmailPasswordSession (index-DUmuG3IN.js:40:73898) at Yk.login (index-DUmuG3IN.js:40:91085) at c (index-DUmuG3IN.js:225:14810) at onSubmit (index-DUmuG3IN.js:225:15409) at Object.e2 (index-DUmuG3IN.js:37:9855)

I am facing this above error while submitting the login form, my application is hosted on vercel

TL;DR
Developers are encountering a 'Failed to construct URL' error after deploying their application on Vercel, which is preventing successful logins. The issue seems to be related to calling 'createEmailPasswordSession'. The error message originates from a lengthy code snippet, and the issue wasn't present on localhost.
Souptik Datta
18 Jul, 2024, 15:56

@Avin Any code snippet?

Avin
18 Jul, 2024, 15:56

sure, a sec

Avin
18 Jul, 2024, 15:56

the code snippet is very big

Avin
18 Jul, 2024, 15:57

in localhost it was logging in and storing data in database

Avin
18 Jul, 2024, 15:57

after deploying it on vercel, this is ocurring

Souptik Datta
18 Jul, 2024, 15:58

Maybe you can share the code snippet exactly where the error is happening. As per I can see it happens where you are calling createEmailPasswordSession maybe?

Avin
18 Jul, 2024, 15:58

but it was proper in localhost right

Avin
18 Jul, 2024, 16:00
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more