Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle upload sync passed for initial transfers #116

Open
haatveit opened this issue Apr 24, 2023 · 0 comments
Open

Handle upload sync passed for initial transfers #116

haatveit opened this issue Apr 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@haatveit
Copy link
Contributor

Currently tacl will fail on attempted tacl --upload-sync if the base directory doesn't exist remotely.

$ tacl p11 --env test --upload-sync dist
uploading directory dist
fetching information about directory: dist
405 Client Error: Method not allowed for url: https://test.api.tsd.usit.no/v1/p11/files/stream/p11-member-group/dist?per_page=10000
The request was unsuccesful. Exiting.

I think 405 method not allowed for upload sync should be interpreted as a signal to try switching to normal uploading (we could also create the remote base directory and "sync", but I don't think there's any point in using the sync code path for an initial upload).

@haatveit haatveit added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant