API Transfer - Host/IP xxx.xx.xxx.xxx not authorised

200 views
Skip to first unread message

Timothy Giles

unread,
Jul 26, 2016, 7:33:08 AM7/26/16
to archivematica
Hi all,

We are trying to run the automated transfer python code available on github, and get the following message:

params:  {u'username': u'ckan', u'api_key': u'api_key_is_here'}
    data:  {u'paths[]': ['Mjk2YTY2MDMtZGM4Ny00NzFkLTg1YzgtMThhZDNhMTBhZWM5OjI0Mjk='], u'type': u'dspace', u'name': u'2429', u'row_ids[]': [u''], u'accession': None}

(u'Response: ', <Response [403]>)

(u'Unable to start transfer.',)

(u'Response: ', {u'message': u'Host/IP xxx.xx.xxx.xxx not authorized.', u'error': True})

(u'Transfer:', None)


the username and api_key are correct. I can log in to the Storage Services and the main site with this user, AOK. But, when trying to run the transfer.py code, the above messgae is received. The IP address is actually given, I have replaced it with x's. The api_key again is definitely correct.

Thanks for all help given.

Timothy

Julie Allinson

unread,
Jul 26, 2016, 8:18:56 AM7/26/16
to archiv...@googlegroups.com
Hi Tim,

I had something similar and it was because I hadn't added the host/ip to the whitelist under REST API in the dashboard admin settings.

Worth checking?

Julie

--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematic...@googlegroups.com.
To post to this group, send email to archiv...@googlegroups.com.
Visit this group at https://groups.google.com/group/archivematica.
For more options, visit https://groups.google.com/d/optout.



--
Julie Allinson <julie.a...@york.ac.uk>
Technology Development Manager
Collections Services
Library & Archives
University of York
Heslington, York, YO10 5DD, UK
tel: ++44 (0) 1904 324083 

skype: j.allinson | gtalk: julie.a...@york.ac.uk

Timothy Giles

unread,
Aug 2, 2016, 6:52:51 AM8/2/16
to archivematica
Hi Julie,

Thanks for your reply, I have been on summer leave so excuse late reply.

We have moved on but have a file system error now... I will post a seperate posting about that.

Cheers Tim
Reply all
Reply to author
Forward
0 new messages