Fixed problem with authentication of the requests.