When i try to upload a video to Vimeo using a video URL from my database, i get the error “No User Credentials Provided”. I assume this is something to do with the App ID/API Key and the App Secret needed in the plugin page. Do I need different keys for test mode? Where do I find the App ID/API Key and App Secret on Vimeo?
Any help would be great! Thanks
Are you using a plugin to upload to vimeo, or making the API call yourself via the API connector?
1 Like
I haven’t used that plugin personally (I use the API connector to make the call), so can’t give much specific help on that, but if the error you’re getting is saying no User Credentials provided then the obvious question is are you sure you’ve provided the correct credentials in the plugin settings?
And you have the required permissions (scopes) for uploading set up in your Vimeo developer account?
1 Like
I’ve got upload access, I’m wondering if I’m using the right credentials.
These are the credentials required. I used a personal access token with public, private, edit and upload scopes for the ‘App Id/API Key’ and a Client Secret for the ‘App Secret’. Do i need to use different tokens for the dev version? & am i even using the right tokens? Thanks a lot for your help!
As I said previously, I’ve never used that plugin (at least not successfully) to upload to Vimeo, so can’t really comment on it specifically…
But generally for Vimeo you need the following credentials:
For the APP Id you need to use your Client Identifier Key
For the APP Secret you need to use your Vimeo Client Secrets Key
I’d also expect you to need to use your Personal Access Token as authentication, but the plugin you mention doesn’t seem to have a requirement for that, so I’m not sure how that will work.
In any case, try it again making sure you’re using the correct credentials, and if you can’t get it to work I highly recommend using the API connector instead of the plugin to make the API call directly yourself (it’s pretty simple to do if you already have the URL of the uploaded file).
1 Like
Thanks for you help. Do you have any links to documentation on how to use the API connector?
The Bubble manual is a good place to start - API Connector - Bubble Docs
But if you want some guidance specifically with uploading to Vimeo, all you need to so is create a new API in the API connector with the following settings:
The scope value will be whatever scopes you have setup, separated with a space.
Be sure to lave a space between ‘bearer’ and your personal access token in the Authorization value.
For the Accept Header value use: application/vnd.vimeo.*+json;version=3.4
Then create an API call with the following settings:
Then in your workflow, simply run the API call and set the vales for the Video Name (this can be whatever you want), the URL (the URL of the uploaded file), and the file size in KB.
Depending on your app and exactly what you’re doing, I’d recommend setting up some additional workflows to check on the progress of the upload, and even maybe creating an entry in your database - unfortunately Vimeo doesn’t use webbooks so you have to do this on your app, but it’s not too hard to do, and may not even be necessary for your particular needs.
1 Like
Getting the following error:
There was an issue setting up your call.
Raw response for the API
Status code 400
{“invalid_parameters”:[{“field”:“upload.size”,“error_code”:2254,“error”:“Unable to upload video. Please get in touch with the app’s creator.”,“developer_message”:“An invalid type was provided for the size when attempting to upload a video. The size must be an integer.”}],“error”:“You have provided an invalid parameter. Please contact developer of this application.”,“link”:null,“developer_message”:“The parameters passed to this API endpoint didn’t pass Vimeo’s validation. Please check the invalid_parameters list for more information.”,“error_code”:2204}
From the error message it looks like you maybe tried to pass a decimal value, when the value must be an integer (or maybe you tried to pass some other value).
So be sure your size value is an integer, in kb.
1 Like
The error occurs when i try initialising the call? I’ve set it up exactly how you have in the screenshots. Is there something else I need to do?
What value have you put for the size? (you need to input some actual data to initiate the call)
1 Like
What data do I input? Any data?
Yes, any data - as longs as it’s valid (i.e. points to a real file URL)
1 Like
Okay, so i uploaded a video to my database and used the Amazon S3 URL provided there but its now saying invalid URL?
here was an issue setting up your call.
Raw response for the API
Status code 400
{“invalid_parameters”:[{“field”:“upload.link”,“error_code”:2510,“error”:“You provided an invalid URL. Please try again.”,“developer_message”:“This isn’t a valid URL.”}],“error”:“You have provided an invalid parameter. Please contact developer of this application.”,“link”:null,“developer_message”:“The parameters passed to this API endpoint didn’t pass Vimeo’s validation. Please check the invalid_parameters list for more information.”,“error_code”:2204}
Obvious question… but are you certain the URL was valid?
What was the value you used in the API call for URL?
Also, if the file has any privacy rules applied to it then Vimeo won’t be able to access it, so it could be to do with that.
I think the S3 storage is set to private, do you know how to change this to public?
I think the issue here is with the header here:
when you completely remove it the API works correctly, otherwise it shows the error mentioned above.
@adamhholmes is there any issue if we remove the header completely?