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

Fix D1_ERROR: not authorized #33

Merged

Conversation

zeviance
Copy link
Contributor

  • we're trying to read an internal table column - given we have no authority to do so during runtime, the query to get columns will fail and result the error.
  • tested in prod, now it works out of the box with my build with this fix.

- we're trying to read an internal table column - given we have no authority to do so during runtime, the query to get columns will fail and result the error.
Copy link

changeset-bot bot commented Jan 26, 2024

⚠️ No Changeset found

Latest commit: 22ef08e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@zeviance zeviance mentioned this pull request Jan 26, 2024
@JacobLinCool JacobLinCool self-requested a review January 26, 2024 12:52
Copy link
Owner

@JacobLinCool JacobLinCool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Just curious about two things:

  1. Is there any documentation or changelog that points out the _cf_ prefix?
  2. Does the d1_ prefix still exist?

@zeviance
Copy link
Contributor Author

LGTM.

Just curious about two things:

  1. Is there any documentation or changelog that points out the _cf_ prefix?
  2. Does the d1_ prefix still exist?

honestly I have no idea - I had to dig deep into logs to figure out what's going on. The not authorized error message gave me some hints but at this point it's a whack a mole. At least this get us going.

@zeviance
Copy link
Contributor Author

will need your help to merge this in @JacobLinCool since I don't have write permission :)

@JacobLinCool
Copy link
Owner

Ok! Let's close #19! Thank you for your contribution!

@JacobLinCool JacobLinCool linked an issue Jan 27, 2024 that may be closed by this pull request
@JacobLinCool JacobLinCool merged commit c454141 into JacobLinCool:main Jan 27, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

D1_ERROR: not authorized
2 participants