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

v2.1 having issues with "unhandled rejection" (on case of Result.Result<Text, Text> and old way of agent constructor) #933

Open
tiagoicp opened this issue Sep 18, 2024 · 0 comments

Comments

@tiagoicp
Copy link

tiagoicp commented Sep 18, 2024

Describe the bug
On v2.0.0 no issue happens, but when I upgrade to v2.1.0 or v2.1.1, a strange exception happens when it receives the response back. It is only happening to this response, if the response is an array of ints for example, it works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Try to figure it out just by the screenshots. If not, then...
  2. Using Plug to authenticate and a backend in motoko with a Result.Result<Text,Text>, I suspect you will face the same error.

Expected behavior
To behave as it was on v2, without any exception.

Screenshots
Screenshot 2024-09-17 at 22 00 10
Screenshot 2024-09-17 at 22 01 37

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Chrome
  • Version: 128

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Original repo where the incident happened (for more context on dependencies, sequence of code, etc.): https://github.com/obsidian-tears/obsidian_tears_frontend_backend/tree/c27b4552b1f1a33eb47c1afde3262b62b3f984d5

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