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

All images send error #43

Open
BeatDeer92 opened this issue Aug 28, 2020 · 7 comments
Open

All images send error #43

BeatDeer92 opened this issue Aug 28, 2020 · 7 comments

Comments

@BeatDeer92
Copy link

Any image send error
Screen Shot 2020-08-28 at 16 15 11

@nuthinking
Copy link

Maybe Big Sur? The app didn't ask for drive access.

@kyleduo
Copy link
Owner

kyleduo commented Dec 23, 2020

Probably there's a problem of tinypng.com's service. The app works fine for me on Big Sur.

@nicong622
Copy link

Get same error in my new M1 macbook, but work fine in my another old macbook

@trippo
Copy link

trippo commented Jul 8, 2021

On my macbook air M1 work fine

@kmyhy
Copy link

kmyhy commented Nov 4, 2021

I have the same error.

@zhoujingang
Copy link

I have the same error

@nisa123hj
Copy link

it seems like you're looking for a solution code to handle errors when sending images. However, your request is quite broad, as there can be various types of errors that might occur during image transmission. Here's a general outline of how you might approach handling errors when sending images over a network using Python's requests library. Keep in mind that this is just a basic example, and you should adapt it to your specific use case:
import requests

def send_image(image_url):
try:
response = requests.get(image_url)
if response.status_code == 200:
# Process the image or save it
with open('received_image.jpg', 'wb') as f:
f.write(response.content)
print("Image received successfully.")
else:
print(f"Error: Received HTTP status code {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"Error: {e}")

if name == "main":
image_url = "https://example.com/image.jpg" # Replace with the actual image URL
send_image(image_url)

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

8 participants