question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after uploading additional images to project getting has_permission error when using api

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
makseqcommented, Aug 16, 2022

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

0reactions
makseqcommented, Nov 5, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found