8000 🐛 Bug Report: Login Fails with older SDK · Issue #3510 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 Bug Report: Login Fails with older SDK #3510

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

Closed
2 tasks done
stnguyen90 opened this issue Jul 6, 2022 · 1 comment · Fixed by #3517
Closed
2 tasks done

🐛 Bug Report: Login Fails with older SDK #3510

stnguyen90 opened this issue Jul 6, 2022 · 1 comment · Fixed by #3517
Assignees
Labels
bug Something isn't working
Milestone

Comments

@stnguyen90
Copy link
Contributor
stnguyen90 commented Jul 6, 2022

👟 Reproduction steps

  1. Run Appwrite 0.15.X
  2. Authenticate with a 0.14.X SDK (POST /v1/account/sessions)

👍 Expected behavior

It should authenticate properly.

👎 Actual Behavior

The API call fails with:

{
  "message": "Param \"userId\" is not optional.",
  "code": 400,
  "type": "general_argument_invalid",
  "version": "0.15.2"
}

Appwrite logs shows:

appwrite  | [Error] Timestamp: 2022-07-06T20:43:05+00:00
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/account
appwrite  | [Error] Type: Utopia\Exception
appwrite  | [Error] Message: Param "userId" is not optional.
appwrite  | [Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
appwrite  | [Error] Line: 759

This can be corrected if we add /v1/account/sessions as an alias for /v1/account/sessions/email.

🎲 Appwrite version

Version 0.15.x

💻 Operating system

Linux

🧱 Your Environment

No response

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

@stnguyen90 stnguyen90 added the bug Something isn't working label Jul 6, 2022
@stnguyen90 stnguyen90 self-assigned this Jul 8, 2022
@stnguyen90 stnguyen90 linked a pull request Jul 8, 2022 that will close this issue
@stnguyen90 stnguyen90 added waiting for release Fixed or implemented and waiting for a new version to be released labels Jul 11, 2022
@stnguyen90 stnguyen90 added this to the Version 0.15.3 milestone Jul 22, 2022
@stnguyen90
Copy link
Contributor Author

Resolved:

image

@eldadfux eldadfux removed the waiting for release Fixed or implemented and waiting for a new version to be released label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0