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

Error 500 when no address specified #99

Open
arietrouw opened this issue Apr 12, 2022 · 4 comments
Open

Error 500 when no address specified #99

arietrouw opened this issue Apr 12, 2022 · 4 comments
Assignees

Comments

@arietrouw
Copy link
Member

Call from Kotlin SDK causes this:

archivist | Cannot read properties of undefined (reading 'length')
archivist | TypeError: Cannot read properties of undefined (reading 'length')
archivist | at XyoBoundWitnessBodyValidator.addresses (/app/node_modules/src/core/BoundWitness/Validator/BodyValidator.ts:29:19)
archivist | at XyoBoundWitnessBodyValidator.all (/app/node_modules/src/core/BoundWitness/Validator/BodyValidator.ts:93:15)
archivist | at XyoBoundWitnessValidator.all (/app/node_modules/src/core/BoundWitness/Validator/Validator.ts:45:50)
archivist | at /src/archive/archive/block/post/validateBody.ts:9:32
archivist | at Array.map ()
archivist | at validateBody (/src/archive/archive/block/post/validateBody.ts:7:25)
archivist | at /src/archive/archive/block/post/post.ts:26:28
archivist | at Generator.next ()
archivist | at /app/node_modules/tslib/tslib.js:117:75
archivist | at new Promise ()

Probably an issue in the client

@JoelBCarter
Copy link
Member

@arietrouw Do we want to change things on the Kotlin side or allow blocks with no addresses to be sent on the server side?

@arietrouw
Copy link
Member Author

I think I fixed the check to return a better error now

@arietrouw
Copy link
Member Author

Turned off validation in post for now until we can get signatures to line up

@arietrouw
Copy link
Member Author

Next step is returning validation errors in meta

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

2 participants