You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 also met same problem , and I found two causes of this problem were :
The registration region on cn server only can used on api-cn , same as region on US.
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.
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.
I just follow the document : change facepp.py line 351 /detection/detect to facepp/v3/detect , same as other APIs.
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}
Activity
justinstaines commentedon Jun 8, 2016
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/'
sanchishah commentedon Sep 18, 2017
Even though we used the server name 'http://apius.faceplusplus.com/' as mentioned, the authorization error (error code : 1003) still persists.
snehasahu2626 commentedon Apr 30, 2018
hey @sanchishah have you resolved the error . please let me know
timhub commentedon Jun 13, 2018
Same thing we have here on CN server, not only in python SDK, also found in java SDK.
liumusicforever commentedon Jun 25, 2018
I also met same problem , and I found two causes of this problem were :
facepp.pyline 351 showing the detect method was in/detection/detectbut us document showing the method inhttps://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
_APISinfacepp.pyand I don't get any error message.michaelobr commentedon Sep 23, 2018
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.
FMCumhaill commentedon Oct 15, 2018
@liumusicforever can you please provide:
I've played around with your suggestions, but I don't quite understand them
liumusicforever commentedon Oct 15, 2018
@FMCumhaill Hi,
You can check your sign up web page was
https://www.faceplusplus.com.cn/(Chinese) orhttps://www.faceplusplus.com/(English) , and make sure your 'facepp.py' line 133serversame as the url.I just follow the document : change
facepp.pyline 351/detection/detecttofacepp/v3/detect, same as other APIs.FMCumhaill commentedon Oct 16, 2018
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 tohttps://api.faceplusplus.com/it returns{"error":"API not found}Is this expected?
joseph-sch commentedon Dec 16, 2018
https://api-us.faceplusplus.comrequestspackage is straightforward and therefore probably easier than using the API SDK: see a minimal example at https://gist.github.com/joseph-bs/a936d1f62926b2f44aa8ae27dfd0c7ebckorgial commentedon Sep 24, 2021
Hello, everyone !
Does anybody know how it works in Europe?
Which API server to use? I am getting errors..
Any Help?
Thank you :)