Skip to content

🐛 Bug Report: Error is shown, but user is still created #80

@psschand16

Description

@psschand16

👟 Reproduction steps

Account Registration and other api endpoints are not stable or not idempotant.

I am using the below cdn

<script src="https://cdn.jsdelivr.net/npm/appwrite@10.2.0" />

on debugging I its failing below, which is in Web SDK in /appwrite/src/services/account.ts


 const uri = new URL(this.client.config.endpoint + path);
            return await this.client.call('post', uri, {
                'content-type': 'application/json',
            }, payload);

abc143 register successful Screenshot 2023-01-31 100020

abc144 failed to create account Screenshot 2023-01-31 100433

appwrite console Screenshot 2023-01-31 100536

👍 Expected behavior

Ideally user is either created or not created.
users should be created as account api is called with necessary parameters

👎 Actual Behavior

I am getting different results for the same endpoint
As an example in the case of a register register endpoint.

case 1: account created successfully
I recieve a popup that account is created successfully.

case 2: account not created successfully but user is successfully entered in Appwrite auth console
you get a popup user not created but you can find them appwrite console

case 3: account not created successfully but user is not found in Appwrite auth console

🎲 Appwrite version

Version 1.2.x

💻 Operating system

Windows

🧱 Your Environment

web sdk
index.html on a live server

👀 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions