Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Authentication is required (Under Synology NAS) #134

@mlino

Description

@mlino

I'm using your Flickr API to make a simple python script to upload images to my Flickr account, but I noticed something weird. So I have codded it on my windows machine using VSCode, and then put the code on my Synology NAS to run it 24/7.
On my windows machine, it works great, but on Synology NAS, I keep getting an Authentication Error as shown below:

flickr.upload(file)
File "/var/packages/py3k/target/usr/local/lib/python3.8/site-packages/flickrapi/core.py", line 494, in upload
return self._upload_to_form(self.UPLOAD_URL, filename, fileobj, timeout=timeout, **kwargs)
File "/var/packages/py3k/target/usr/local/lib/python3.8/site-packages/flickrapi/core.py", line 533, in _upload_to_form
raise IllegalArgumentException("Authentication is required")

I really don't understand why it is working on windows, but giving me the above-mentioned error on the Synology Linux. The Linux version, running in the Synology NAS is listed below:
(Linux version 4.4.59+ (root@build3) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021).

FYI the following code would give me the same error like the one stated above:

import flickrapi

file = '/volume1/FTP/Evento_AeroITA_5D_3167.jpg'
api_key = u'xxxxxxxxxxxxxxxxxxxxxxxxxx'
api_secret = u'xxxxxxxxxxxxxxxxxxx'

flickr = flickrapi.FlickrAPI(api_key, api_secret)

tags = '"Marcio Lino" ATCBSB "Aviation Photography" SpottersBrasil "@marcioslsouza" '

params = {}
params['filename'] = file
params['title'] = 'Photography'
params['description'] = 'Live, From The Action using Flickr API'
params['tags'] = tags

flickr.upload(**params)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions