Skip to content

🐛 Bug Report: Malformed response when creating email session in Flutter #6250

Closed

Description

@AlbertoBonfiglio

👟 Reproduction steps

  1. Set up a project with a custom domain and email authorization enabled in Appwrite 1.4.1.
  2. create a sample flutter app with the latest appwrite flutter library
  3. create a user
  4. attempt to create the same user

👍 Expected behavior

It should throw a 400 exception. The AppwriteException should have a valid code, message, response, and type.

👎 Actual Behavior

It correctly throws an Appwrite exception but the response is malformed. It returns code, response and type as null, and message as a long winded html page.

Screenshot 2023-09-05 105246

When looking at the web console, i can see the correct error is returned in the post but not in the flutter exception

Screenshot 2023-09-05 105246

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

Standard docker deployment of 1.4.1 in linux

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Sep 15, 2023
  2. ItzNotABug commented on Sep 15, 2023

    @ItzNotABug
    Contributor

    I believe there were issues on 1.4 & 1.4.1, can you try migrating to 1.4.2 & see if that helps?

  3. stnguyen90 commented on Sep 16, 2023

    @stnguyen90
    Contributor

    Also, did you include the /v1 for your endpoint?

  4. self-assigned this
    on Sep 16, 2023
  5. stnguyen90 commented on Oct 5, 2023

    @stnguyen90
    Contributor

    @AlbertoBonfiglio, are you still facing this problem? FYI, I'll need to close this due to inactivity soon.

  6. AlbertoBonfiglio commented on Oct 10, 2023

    @AlbertoBonfiglio
    Author

    Also, did you include the /v1 for your endpoint?

    Yes I did. I'll do a migration to the latest version this week and report back.

  7. AlbertoBonfiglio commented on Oct 16, 2023

    @AlbertoBonfiglio
    Author

    As of 1.4.5 it works correctly. I did not test versions in between.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions