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

Profile validation is throwing a lexicon error #20

Open
Peechiz opened this issue Oct 21, 2024 · 3 comments
Open

Profile validation is throwing a lexicon error #20

Peechiz opened this issue Oct 21, 2024 · 3 comments

Comments

@Peechiz
Copy link

Peechiz commented Oct 21, 2024

image

Turning off the profile validator in src/routes.ts:191 seems to fix this:
image

Otherwise it blows up in my OAuth callback every time I log in.

Things I have tried:

  • updating the @atproto/lexicon - (on latest version)
  • npm run lexgen - schema remains the same
@nsantini
Copy link

I moved forward by removing the validation, like you did. Seems like the lexicon definitions are missing from the lexicon package. They are there in the repo, but can't find them in the dist folder when installing the library

santisbon added a commit to santisbon/statusphere-example-app that referenced this issue Oct 26, 2024
@santisbon
Copy link

In src/lexicon/types/app/bsky/actor/profile.ts there are references to these two that are not found anywhere:

  • ../../../com/atproto/label/defs
  • ../../../com/atproto/repo/strongRef

@pfrazee
Copy link
Contributor

pfrazee commented Oct 28, 2024

Riiight that makes sense. Why on earth is that not throwing for me.

Okay the solution here is to copy the missing lexicons into the /lexicons folder

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

4 participants