Skip to content

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions