appwrite / sdk-for-react-native

[READ ONLY] Official Appwrite React Native SDK πŸ’™ βš›οΈŽ
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
3.72k stars 20 forks source link

πŸ› Bug Report: Appwrite SDK - Route Not Found Issue #28

Open mohd-ajlal opened 2 months ago

mohd-ajlal commented 2 months ago

πŸ‘Ÿ Reproduction steps

npm list appwrite rn-starter@1.0.0 D:\react_native\stock_video_app └── appwrite@15.0.0

  1. Set Up Environment:

    Ensure that Appwrite server version 1.5.10 is running. Install the Appwrite SDK that is meant for version 1.6.0 or later.

  2. Configure SDK:

    Add the Appwrite SDK to your project using a package manager (e.g., npm install appwrite@latest).

  3. Execute Request:

    Use the SDK to make an API request to the Appwrite server.

  4. Observe Error:

    Check the application logs or output to observe the error message.

bug

πŸ‘ Expected behavior

The Appwrite SDK should interact correctly with the Appwrite server, and API requests should be processed successfully without errors.

πŸ‘Ž Actual Behavior

The application logs show a 404 error with the message "The requested route was not found." The response HTML indicates a route error (general_route_not_found), suggesting a mismatch or issue with the server or SDK configuration.

🎲 Appwrite version

Different version (specify in environment)

πŸ’» Operating system

Windows

🧱 Your Environment

No response

πŸ‘€ Have you spent some time to check if this issue has been raised before?

🏒 Have you read the Code of Conduct?

stnguyen90 commented 2 months ago

@mohd-ajlal, thanks for raising this issue! πŸ™πŸΌ

The latest version of the SDK is meant for version 1.6 of Appwrite, but Appwrite Cloud is using 1.5. Please make sure to use a compatible version.

Also, you should be using the react-native-appwrite package and not the appwrite package for react native.