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 code 3003 (Failed to deserialize the account.) should specify an account #1798

Closed
asktree opened this issue Apr 16, 2022 · 3 comments · Fixed by #1800
Closed

Error code 3003 (Failed to deserialize the account.) should specify an account #1798

asktree opened this issue Apr 16, 2022 · 3 comments · Fixed by #1800
Labels
bug Something isn't working lang

Comments

@asktree
Copy link

asktree commented Apr 16, 2022

current behavior

Here are example logs:

  logs: [
    'Program Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS invoke [1]',
    'Program log: Instruction: CreateMarket',
    'Program 11111111111111111111111111111111 invoke [2]',
    'Program 11111111111111111111111111111111 success',
    'Program log: AnchorError occurred. Error Code: AccountDidNotDeserialize. Error Number: 3003. Error Message: Failed to deserialize the account.',
    'Program Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS consumed 28416 of 200000 compute units',
    'Program Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS failed: custom program error: 0xbbb'
  ],

desired behavior

You would expect the error to tell me which account is the issue, as has been the case with some other errors since 0.22.

@asktree asktree changed the title Error code 3003 (Failed to deserialize the account.) doesn't say which account Error code 3003 (Failed to deserialize the account.) should specify an account Apr 16, 2022
@paul-schaaf
Copy link
Contributor

does this happen during an init?

@asktree
Copy link
Author

asktree commented Apr 17, 2022

@paul-schaaf I could be misremembering, but I believe that this was indeed during an init and i'd miscalculated space to be smaller than the struct actually needed.

@paul-schaaf
Copy link
Contributor

there's indeed sth missing in the init code so we can merge that and see whether this issue comes up again.

Thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lang
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants