Skip to content

Error 1003 - Authorization Error #1

Open

Description

@TMMeijers

Even though I have made an account, an app and use the key and secret key every request I make returns error code 1003: Authorization error.

I have tried both the Command Tool (with my keys in .cfg) and calling the API from my own code. All return the error just like the example hello.py program.

I have tried both the US and CN server (http://us.api.faceplusplus.com and http://us.api.faceplusplus.com) as well as http://usapi.faceplusplus.com which is listed under the MyApp page. All give back 404 but http://api.faceplusplus.com works (but unfortunately gives me the Authorization error).

Activity

  1. justinstaines commented on Jun 8, 2016

    @justinstaines

    Make sure in the facepp.py file the server name is http://apius.faceplusplus.com

    i.e.

    class API(object):
    key = None
    secret = None
    server = 'http://apius.faceplusplus.com/'

  2. sanchishah commented on Sep 18, 2017

    @sanchishah

    Even though we used the server name 'http://apius.faceplusplus.com/' as mentioned, the authorization error (error code : 1003) still persists.

  3. snehasahu2626 commented on Apr 30, 2018

    @snehasahu2626

    hey @sanchishah have you resolved the error . please let me know

  4. timhub commented on Jun 13, 2018

    @timhub

    Same thing we have here on CN server, not only in python SDK, also found in java SDK.

  5. liumusicforever commented on Jun 25, 2018

    @liumusicforever

    I also met same problem , and I found two causes of this problem were :

    1. The registration region on cn server only can used on api-cn , same as region on US.
    2. The api-us method maybe was different with api-cn , for example : facepp.py line 351 showing the detect method was in /detection/detect but us document showing the method in https://api-us.faceplusplus.com/facepp/v3/detect (without detection)

    so , when I make sure I have same region of registration and api-server , change methods on _APIS in facepp.py and I don't get any error message.

  6. michaelobr commented on Sep 23, 2018

    @michaelobr

    Has anybody found a fix for this issue? I am trying to use the web API in a ruby program I am making but keeping getting error 404.

  7. FMCumhaill commented on Oct 15, 2018

    @FMCumhaill

    @liumusicforever can you please provide:

    1. How you found which region your API was set to.
    2. The exact changes made to the facepp.py file.

    I've played around with your suggestions, but I don't quite understand them

  8. liumusicforever commented on Oct 15, 2018

    @liumusicforever

    @FMCumhaill Hi,

    1. You can check your sign up web page was https://www.faceplusplus.com.cn/(Chinese) or https://www.faceplusplus.com/(English) , and make sure your 'facepp.py' line 133 server same as the url.

    2. I just follow the document : change facepp.py line 351 /detection/detect to facepp/v3/detect , same as other APIs.

  9. FMCumhaill commented on Oct 16, 2018

    @FMCumhaill

    Hi @liumusicforever

    Thanks for the support, I did as you suggested but if I set the url to https://www.faceplusplus.com/ it just returns a bunch of HTML code. If I set it to https://api.faceplusplus.com/ it returns {"error":"API not found}

    Is this expected?

  10. joseph-sch commented on Dec 16, 2018

    @joseph-sch
    1. The API server address that works for me (from an AWS instance in the US) is: https://api-us.faceplusplus.com
    2. I've found that generating the HTTP request with the requests package is straightforward and therefore probably easier than using the API SDK: see a minimal example at https://gist.github.com/joseph-bs/a936d1f62926b2f44aa8ae27dfd0c7eb
  11. ckorgial commented on Sep 24, 2021

    @ckorgial

    Hello, everyone !

    Does anybody know how it works in Europe?

    Which API server to use? I am getting errors..

    Any Help?

    Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions