after uploading additional images to project getting has_permission error when using api
See original GitHub issueDescribe the bug Have an existing data set, uploaded more images, labeled them and Exported to JSON
We have a script that downloads all data and trains it, we get this exception just for the new images uploaded, rest of the dataset downloads and trains as usual
[2022-08-14 01:52:06,140] [core.utils.common::custom_exception_handler::82] [ERROR] d859f6f8-6d0f-4ec6-b788-4afafc5a7f44 'NoneType' object has no attribute 'has_permission'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/label-studio/label_studio/data_import/api.py", line 456, in get
if not file_upload.has_permission(request.user):
AttributeError: 'NoneType' object has no attribute 'has_permission'
[2022-08-14 01:52:06,148] [django.request::log_response::224] [ERROR] Internal Server Error: /data/upload/93502c49-62f6cf5fb7dc44477adf0ded.jpeg
Environment (please complete the following information):
Recently we upgraded to docker image :latest
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to deploy a Cloud Run Service using an image from ...
Permission must be granted to the Google Cloud Run Service Agent from this project. " I am selecting the image to deploy from...
Read more >Error uploading image in API V3 - BigCommerce Support
I keep getting an error while uploading an image using API V3: The request: {; "is_thumbnail": true,; "description": "Builder's Choice BCC 1-3/16'' dia ......
Read more >Troubleshoot Dataflow errors - Google Cloud
This error occurs if the Dataflow service account doesn't have access to the Data Catalog API. To resolve this issue, enable the Data...
Read more >Packages API - GitLab Docs
Get a list of project packages. All package types are included in results. When accessed without authentication, only packages of public projects are...
Read more >Pulling and Pushing Images in the Docker Client - Harbor docs
In your Docker client is not configured for insecure registries, you will see the following error when you attempt to pull or push...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately you can’t move uploaded data so easily to another from one project to another. I would recommend to use Local Storage for images: https://labelstud.io/guide/storage.html#Local-storage
@ktobah Please check the answer here: https://github.com/heartexlabs/label-studio/issues/3201#issuecomment-1304384789