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

Check access to channel before downloading and starting upload #434

Open
lsolesen opened this issue May 13, 2023 · 0 comments
Open

Check access to channel before downloading and starting upload #434

lsolesen opened this issue May 13, 2023 · 0 comments

Comments

@lsolesen
Copy link
Contributor

  • ricecooker version: 0.7.1
  • Python version:
  • Operating System:

Description

I helped other people making channels through ricecooker. They use different tokens for their channel off course. By accident I used my own token, when trying to upload their channel.

Off course I do not have access to the channel, so I should not be able to upload it.

However the check for access to the channel is not made in the beginning of the channel creation but after downloading and starting the upload.

What I Did

I just ran the ricecooker command

And then I had the following:

INFO     Uploading files...
INFO       Uploading 3 new file(s) to Kolibri Studio...
INFO            Uploaded 54f5b6c15ba79c0d8e786d9667745932.png (1/3) 
INFO            Uploaded 4228107f6e318fec8037cab371af946b.png (2/3)
INFO            Uploaded 1c0c13c7c3cf1494342f53cc24a443a1.png (3/3) 
INFO     
INFO     Creating channel...
INFO     Creating tree on Kolibri Studio...
INFO        Creating channel Eventure Pregnancy Inspiration
ERROR    Error connecting to API: User is not authorized to edit this channel

You can reproduce by trying to upload the channel to a token which not have access to the channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant