Thank you for feedback Dustin, the error snippet is coming from
nova.astrometry.net so that is all that I could provide. It is the actual online
https://nova.astronomy.net/upload website generating the error message, not our code. But I understand what you area saying: fault is at imgur in that they are rejecting the request to pull the image.
However, you are saying that curl is the default option and it works (for now). Is that for the source code or for the nova website? I'm not sure I understand as I don't think we have the ability to specify wget as an option (see below).
I don't expect you to look at that, but for reference a small piece of the code in AstrometryNetNova.py is:
# Upload the image to imgur
image_url = imgurUpload('skyfit_image.jpg', image_data=img_data)
c = Client()
# Log in to nova.astrometry.net
if api_key is None:
api_key = API_KEY
c.login(api_key)
# Add keyword arguments
kwargs = {}
kwargs['publicly_visible'] = 'y'
kwargs['crpix_center'] = True
kwargs['tweak_order'] = 3
# Add the scale to keyword arguments, if given
if fov_w_range is not None:
scale_lower, scale_upper = fov_w_range
kwargs['scale_lower'] = scale_lower
kwargs['scale_upper'] = scale_upper
# Upload image or the list of stars
if file_handle is not None:
upres = c.url_upload(image_url, **kwargs)
elif x_data is not None:
upres = c.upload(x=x_data, y=y_data, **kwargs)
else:
print('No input given to the funtion!')