Help! My Imgur Upload Script Isn’t Working

0
0
Asked By ChillPanda47 On

I'm having trouble with the upload script used by the XFCE screenshot tool to send screenshots to Imgur. It suddenly stopped working, and I'm not sure if the issue is with the script itself or changes made to the Imgur API. As an average Linux user, I could really use some assistance. Here's the script I'm working with: [https://pastebin.com/5SunZpkk](https://pastebin.com/5SunZpkk)

4 Answers

Answered By SnapshotSavior On

I just tried the script and it worked perfectly for me. Can you clarify what you mean by "stopped working"? What kind of error are you running into?

ImgurNinja99 -

I'm getting this error: [https://imgur.com/2EoPgB1](https://imgur.com/2EoPgB1). I'm using MX Linux.

Answered By ScriptMaster22 On

Have you tried using ShellCheck? It's a great tool that can help you find problems in your script—maybe it'll spot something that could be causing your issue!

Answered By UserFriendly On

My version of xfce4-screenshooter (1.9.8-1) has also been acting up for about a month. Just so you know, the issues might stem from the version being outdated—custom actions were introduced after 1.10.0, so any problems you're facing might not be related to your Bash script.

Answered By TechieTinker On

You might want to improve how you handle return codes, especially around line 40 where you're using `curl`. After running `curl`, check its exit code and see if the `RESPONSE` variable is empty. Instead of using `--silent` with `curl`, try using `--no-progress-meter` and redirect stderr to a file so you can review any errors if `curl` fails.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.