twilio-python icon indicating copy to clipboard operation
twilio-python copied to clipboard

create a push credentials failed

Open cchuang6 opened this issue 9 years ago • 1 comments

Note: These issues are for bugs and feature requests for the helper libraries. If you need help or support, please email [email protected] and one of our experts will assist you!

Version: 6.5.2

Code Snippet

credential = client.notify.credentials.create(type="APN",
                                              friendly_name="test cred",
                                              certificate=IOS_PUSH_SANDBOX_CERT,
                                              private_key=IOS_PUSH_SANDBOX_KEY, 
                                              sandbox="true")

Exception/Log

TwilioRestException: 
HTTP Error Your request was:

POST /Credentials

Twilio returned the following information:

Unable to create record: Could not parse certificate

More information may be available here:

https://www.twilio.com/docs/errors/20001

Steps to Reproduce

I tried to create a push credential by using iOS certificate and private key. I tried to do it on the web and there is no problem to generate a new one. However, when I tried to create one by using notify credential API, it failed. Could you please help me ? What kind of format of the certificate and the private key should I pass ?

Thanks

cchuang6 avatar Aug 27 '17 06:08 cchuang6

@cchuang6 Please redirect this question to [email protected]. We have a wonderful support team that would be happy to assist you!

jingming avatar Sep 20 '17 20:09 jingming