Rank 2: Process
Since I have updated to the latest appwrite Flutter package (28.1.0) I am unable to retrieve files using the file ID:
await getJwt(); //makes sure a valid JWT is used appwrite.Client client = appwrite.Client(); appwrite.Storage storage = appwrite.Storage(client);... client.setEndpoint(endpoint).setProject(projectId).setJWT(_currentJwt!.jwt);I keep getting the following error:
AppwriteException (AppwriteException: user_jwt_and_cookie_set, JWT and cookie used in the same request. Use either `setJWT` or `setCookie`. Learn about which authentication method to use in the SSR docs: https://appwrite.io/docs/products/auth/server-side-rendering (403))The error is somehow misleading I guess, because I am using only setJWT and not setCookie.
The exception contains the following information:
{"message":"JWT and cookie used in the same request. Use either `setJWT` or `setCookie`. Learn about which authentication method to use in the SSR docs: https:\/\/appwrite.io\/docs\/products\/auth\/server-side-rendering","code":403,"type":"user_jwt_and_cookie_set","version":"2.5.0"}The headers of the request:
[Appwrite Headers] {content-type: application/json, x-sdk-name: Flutter, x-sdk-platform: client, x-sdk-language: flutter, x-sdk-version: 28.1.0, X-Appwrite-Response-Format: 2.5.0, X-Appwrite-JWT: [REDACTED], Origin: appwrite-android://com.example.app, user-agent: com.example.app/2.0.1 (Linux; U; Android 17; google Pixel)}I am unsure whether it is a bug or if the setup of the client has changes. Can someone give me a hint?