Skip to content
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

🐛 Bug Report: Cannot read properties of undefined (reading 'replace') #108

Open
2 tasks done
vitusan opened this issue Sep 30, 2024 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@vitusan
Copy link

vitusan commented Sep 30, 2024

👟 Reproduction steps

install appwrite web sdk or the angular web sdk wrapper (ngx-appwrite);
follow configuration from tutorial at https://appwrite.io/docs/quick-starts/angular;
run ng s;
get error when loading page;

👍 Expected behavior

Not present the error.

👎 Actual Behavior

Found same issue here https://appwrite.io/threads/1279972579033219134

image

4:21:55 PM [vite] Internal server error: Cannot read properties of undefined (reading 'replace')
      at Client.setEndpoint (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-QDVDZWYS.js:258:89)
      at eval (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\ngx-appwrite.js:5475:14)
      at _ApplicationInitStatus.runInitializers (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-E6GZ4TPX.js:21108:26)
      at eval (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-E6GZ4TPX.js:22281:18)
      at _callAndReportToErrorHandler (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-E6GZ4TPX.js:21177:20)
      at eval (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-E6GZ4TPX.js:22279:12)
      at _ZoneDelegate.invoke (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\node_modules\.pnpm\[email protected]\node_modules\zone.js\fesm2015\zone-node.js:369:28)
      at Object.onInvoke (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\.angular\cache\18.2.6\vite\deps_ssr\chunk-E6GZ4TPX.js:6817:25)
      at _ZoneDelegate.invoke (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\node_modules\.pnpm\[email protected]\node_modules\zone.js\fesm2015\zone-node.js:368:34)
      at ZoneImpl.run (C:\Users\bode\Documents\repos\aazt\aaz-telecom-referral-app\node_modules\.pnpm\[email protected]\node_modules\zone.js\fesm2015\zone-node.js:111:43)

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

Self hosted version 1.5.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@vitusan vitusan added the bug Something isn't working label Sep 30, 2024
@loks0n
Copy link
Member

loks0n commented Oct 2, 2024

Hey, can you share which version of the SDK this is? You should be able to find it in your node_modules

If you haven't already, it might be worth trying to update to the latest version

@stnguyen90
Copy link
Contributor

@vitusan, thanks for raising this issue! You may not have set an endpoint. To verify this, you can try to log client.endpoint before whatever method you're calling.

@stnguyen90 stnguyen90 self-assigned this Dec 20, 2024
@stnguyen90 stnguyen90 added the question Further information is requested label Dec 20, 2024
@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: 🐛 Bug Report: Cannot read properties of undefined (reading 'replace') Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants