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

📚 Documentation: SvelteKit tutorial is buggy #764

Closed
2 tasks done
SumitBando opened this issue Mar 7, 2024 · 3 comments
Closed
2 tasks done

📚 Documentation: SvelteKit tutorial is buggy #764

SumitBando opened this issue Mar 7, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation question Further information is requested stale

Comments

@SumitBando
Copy link
Contributor

SumitBando commented Mar 7, 2024

💭 Description

https://appwrite.io/docs/tutorials/sveltekit/step-7 shows code for src/routes/+page.svelte, which has:

	import { user } from '$lib/user.js';

This leads to runtime error:

{
    "name": "AppwriteException",
    "code": 401,
    "type": "general_unauthorized_scope",
    "response": {
        "message": "User (role: guests) missing scope (account)",
        "code": 401,
        "type": "general_unauthorized_scope",
        "version": "0.12.111"
    }
}

presumably because the because the page assumes the user is logged in.

👀 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?

@SumitBando SumitBando added the documentation Improvements or additions to documentation label Mar 7, 2024
@stnguyen90
Copy link
Contributor

@SumitBando, thanks for raising this issue! 🙏🏼 Is something breaking? Where exactly are you seeing an error? It's expected for the console logs to show a 401 error if the user isn't logged in because the browser will always log HTTP calls that result in a status code of 400 or higher.

@stnguyen90 stnguyen90 self-assigned this May 30, 2024
@stnguyen90 stnguyen90 added the question Further information is requested label Sep 20, 2024
Copy link

This issue has been labeled as a 'question', indicating that it requires additional information from the requestor. It has been inactive for 7 days. If no further activity occurs, this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Sep 28, 2024
Copy link

This issue has been closed due to inactivity. If you still require assistance, please provide the requested information.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants