psywhale / pyswitchvox

Automatically exported from code.google.com/p/pyswitchvox
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Errors submitting spaces in JSON data. #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add phone book with a 'space' in the name portion of the json payload

What is the expected output? What do you see instead?
When using curl or the digium test suite the json payload will succeed. using 
pyswitchvox the following error is returned.

{u'response': {u'errors': {u'error': {u'code': u'10000',
    u'message': u'invalid character encountered while parsing JSON string, at character offset 267 (before "\\x{0}thing"}}}")'}}}}

Switchvox technical support has verified that the error code, is wrong and not 
related to the issue issue. As python is not officially supported, they are of 
little help in resolving other then to say use a perl or php.

I suspect this may be related to liburl but no idea how to debug that.

What version of the product are you using? On what operating system?
current git release.

Please provide any additional information below.

Original issue reported on code.google.com by vw.jetta...@gmail.com on 10 Sep 2013 at 7:16

GoogleCodeExporter commented 8 years ago
Try using tag 0.1.

It's available in tags branch or downloads folder.

It uses wget for https communication.  The latest trunk (changed by Stephen 
Chapman) uses Python standard library for https communication.

If you've been using trunk (standard library used for https), then I'd suggest 
you try version 0.1 which uses wget.

See if that fixes your problem.

Best,
Daniel

Original comment by daniel.s...@gmail.com on 12 Sep 2013 at 1:24

GoogleCodeExporter commented 8 years ago
Is there any other work around for this issue?

Original comment by joshi.pr...@gmail.com on 31 Oct 2014 at 11:25