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

getnotes not working SyntaxError: Unexpected end of input at NoteState.js:22:1 #40

Open
thakoraarya opened this issue Dec 6, 2022 · 0 comments

Comments

@thakoraarya
Copy link

// Get all Notes
  const getNotes = async () => {
    // API Call
    const response = await fetch(`${host}getnotes`, {
      method: 'GET',
      mode: 'no-cors',
      headers: {
        'Content-Type': 'text/html',
        "auth-token": token
      }
    })
    const jsn = await response.json()
    console.log(jsn);
  }

Failed to load resource: the server responded with a status of 401 (Unauthorized)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant