NotAcceptable response

I’ve just randomly received NotAcceptable responses from two different
bills. No idea what the cause is.

https://lh3.googleusercontent.com/-kVzWUOFERuw/Vyxw8ozxlPI/AAAAAAAAexo/RfT79kyk7QMpJ9h8cvmH89DiGGvI8oqVQCLcB/s1600/not%2Bacceptable.PNG

Bang on. I’ve stripped them out and both went through successfully.

ThanksOn 6 May 2016 at 12:49, David Jones david.jones@freeagent.com wrote:

Hi Jon,

I’ve found your requests in ours logs.
Here’s the error message associated with the 406 response

ActionDispatch::ParamsParser::ParseError (lexical error: invalid character
inside string.
“category”:“150”,“reference”:" T311771","dated_
(right here) ------^
):

Digging a little deeper, the very first character you’ve sent as the bill
reference is a vertical tab:
https://codepoints.net/U+000B

I expect the bill reference has been copied from another source, such as a
word document or PDF?
Often this is how we find hidden, unexpected characters, making their way
into API requests.

Sanitising the bill reference to remove the vertical tab should resolve
your problem.

Hope this helps,
Dave

On 6 May 2016 at 11:25, Jon Free jon.free@wastesource.co.uk wrote:

I’ve just randomly received NotAcceptable responses from two different
bills. No idea what the cause is.

https://lh3.googleusercontent.com/-kVzWUOFERuw/Vyxw8ozxlPI/AAAAAAAAexo/RfT79kyk7QMpJ9h8cvmH89DiGGvI8oqVQCLcB/s1600/not%2Bacceptable.PNG


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at https://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.


David Jones
Support Engineering Team Lead

FreeAgent


You received this message because you are subscribed to a topic in the
Google Groups “FreeAgent API” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/freeagent_api/6wKJiS9l34Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at https://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Jon Free

WasteSource http://www.wastesource.co.uk/

07931 925 257 <07931+925+257>| 0117 205 0259

wastesource.co.uk http://www.wastesource.co.uk/ | @wastesource
https://twitter.com/#!/WasteSource

Office 4, Tobacco Factory, Bristol, BS3 1TF

Information in this email is confidential and intended for the sole use of
the addressee/s. Access, copying, disclosure or re-use, in any way, of the
contents of this email by anyone other than the addressee/s is
unauthorised. I accept no legal responsibility for the content of the
message. If you have received this email in error, please return it to the
sender.

Hi Jon,

I’ve found your requests in ours logs.
Here’s the error message associated with the 406 response

ActionDispatch::ParamsParser::ParseError (lexical error: invalid character
inside string.
“category”:“150”,“reference”:" T311771","dated_
(right here) ------^
):

Digging a little deeper, the very first character you’ve sent as the bill
reference is a vertical tab:

I expect the bill reference has been copied from another source, such as a
word document or PDF?
Often this is how we find hidden, unexpected characters, making their way
into API requests.

Sanitising the bill reference to remove the vertical tab should resolve
your problem.

Hope this helps,
DaveOn 6 May 2016 at 11:25, Jon Free jon.free@wastesource.co.uk wrote:

I’ve just randomly received NotAcceptable responses from two different
bills. No idea what the cause is.

https://lh3.googleusercontent.com/-kVzWUOFERuw/Vyxw8ozxlPI/AAAAAAAAexo/RfT79kyk7QMpJ9h8cvmH89DiGGvI8oqVQCLcB/s1600/not%2Bacceptable.PNG


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at https://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

David Jones
Support Engineering Team Lead

FreeAgent