-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error: "The param 'file_url' has an invalid value." when pushing image #70
Comments
Thanks for report. Uploading files is a little tricky, see the docs. Can you try with the debug= and verbose= flags? We may need to dig into the code to see if the initial upload of the file worked. |
Thanks - sorry for bringing up an issue on a package that's been quiet for a while but its a very handy package! With debug and verbose:
That URL does seem to point to the correct image |
Thanks for the follow-up. This helps. So we have a file_url that is a valid string. Good. But the docs are confusing. I see nothing changed. Though https://docs.pushbullet.com/#upload now also mentions 'upload_url' as well as 'file_url'. It is a bit of a hail mary -- maybe sending it a On the other hand, |
Not sure that As shown, when creating the upload request, I get a file_url that is a valid string
However, trying to look into the
The file_url appears to be different, and doesn't lead to a valid image. I don't fully understand curl etc myself, so not sure if this is expected or if something is going wrong in the creation of the push params? |
The next debug step is indeed to do it 'by hand' following the pushbullet API tutorial. The basic command argument to |
When trying to push an image, I get the following error:
Warning message: 400{"error":{"code":"invalid_param","type":"invalid_request","message":"The param 'file_url' has an invalid value.","param":"file_url","cat":"\u003e:3"},"error_code":"invalid_param"}
Reproducible code below.
`p <- ggplot(mtcars, aes(x = cyl, y = mpg)) +
geom_point()
file <- tempfile("test", fileext = ".png")
ggsave(file, p)
pbPost(type = "file",
title = "test",
url = file,
filetype = "image/png")
`
Using R 4.2.2 on Windows 11
The text was updated successfully, but these errors were encountered: