Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pymemri pymemri
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • pymemripymemri
  • Issues
  • #126
Closed
Open
Issue created Apr 07, 2022 by Aglaia@RuskiBusinessOwner

Bug: feedback needed for uploading and downloading items

Issue: When downloading an item that was recently uploaded, Pod can return an error 500 Failure: Failed to read data from target file, No such file or directory (os error 2)

Example, fails on get_file: @pytest.fixture(scope="module") def client(): return PodClient()

@pytest.fixture def photo(): x = np.random.randint(0, 255+1, size=(640, 640), dtype=np.uint8) return Photo.from_np(x)

def test_create_file(client: PodClient, photo: Photo): client.add_to_schema(File, Photo) file = photo.file0 assert client.create(file) assert client.upload_file(photo.data)

data = client.get_file(file.sha256) assert photo.data == data

Fixed with a sleep(1) after upload, following test does succeed: def test_create_file(client: PodClient, photo: Photo): client.add_to_schema(File, Photo) file = photo.file0 assert client.create(file) assert client.upload_file(photo.data) sleep(1)

data = client.get_file(file.sha256) assert photo.data == data

┆Issue is synchronized with this Clickup by Unito

Edited Apr 07, 2022 by Aglaia
Assignee
Assign to
Time tracking