Skip to content

🐛 Bug Report: 401 Uploading File #113

@sgruhier

Description

@sgruhier

👟 Reproduction steps

Upload a file thatwill be send by more than one chunk

👍 Expected behavior

It should upload the file

👎 Actual Behavior

It raises an error

Unhandled Exception: AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401)

Here is the stack trace.

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401)
[log] AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401)
#0      ClientMixin.prepareResponse
package:appwrite/src/client_mixin.dart:73
#1      ClientIO.call
package:appwrite/src/client_io.dart:351
<asynchronous suspension>
#2      ClientIO.chunkedUpload
package:appwrite/src/client_io.dart:280
<asynchronous suspension>
#3      Storage.createFile
package:appwrite/services/storage.dart:75

🎲 Appwrite version

Version 2.0.x

💻 Operating system

MacOS

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions