Back

Invalid url param

  • 0
  • Self Hosted
  • Auth
  • Web
KIRANBUSARI2208
19 Mar, 2025, 18:05

AppwriteException: Invalid url param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io, *.appwrite.io, repox-pink.vercel.app at e.call (/var/task/.next/server/chunks/874.js:53:12477) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async q.createRecovery (/var/task/.next/server/chunks/874.js:53:18699) at async /var/task/.next/server/app/api/[[...route]]/route.js:1:86340 at async n (/var/task/.next/server/app/api/[[...route]]/route.js:1:11138) at async /var/task/.next/server/app/api/[[...route]]/route.js:1:25872 at async n (/var/task/.next/server/app/api/[[...route]]/route.js:1:11138) at async /var/task/.next/server/app/api/[[...route]]/route.js:1:14135 at async /var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36957 at async eC.execute (/var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27552) { code: 400, type: 'general_argument_invalid', response: { message: 'Invalid url param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io, *.appwrite.io, code: 400, type: 'general_argument_invalid', version: '1.6.2' } }

I have a hosted Next.js app and need to implement a "Forgot Password" feature using createRecovery. It works perfectly on localhost, but on my hosted domain (https://www.vaiu.in), it's not functioning, and I'm not receiving any emails.

Can anyone explain why this is happening and how to fix it?

TL;DR
New domain `vaiu.in` needs to be added as a platform in Appwrite console. The issue is with the invalid `url` param due to restrictions on URL host. The solution is adding the new domain to Appwrites console as a platform.
Kenny
19 Mar, 2025, 18:29

Sure, you need to add that new domain vaiu.in as a platform in Appwrites console.

Kenny
19 Mar, 2025, 18:30
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