Note that there are some explanatory texts on larger screens.

plurals
  1. POJSON.parse invalid character
    primarykey
    data
    text
    <p>I'm getting the Invalid Character error at line 12565 of Breeze 1.1.2's breeze.debug.js. The line is:</p> <pre><code>var metadata = JSON.parse(data); </code></pre> <p>I've researched this error message and the best suggestions I've seen are having unescaped single or double quotes, or invalid characters. But, I can't find either in the response.</p> <p>I'm using BreezeJS to make the request and process the response. The response is being generated by Breeze.WebApi.EFContextProvider.Metadata(). I'm using IE11 on Windows 8.1. The server generating the response is IIS Express 8. I captured the request and response with Fiddler. </p> <p>Can anyone see what's wrong with the response?</p> <p>Request:</p> <pre><code>GET http://localhost/RisingTide.API/breeze/scheduledpayments/Metadata HTTP/1.1 X-Requested-With: XMLHttpRequest Accept: application/json, text/javascript, */*; q=0.01 Referer: http://localhost/RisingTide.Web/#/scheduledpayments Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko Host: localhost DNT: 1 Connection: Keep-Alive </code></pre> <p>Response:</p> <pre><code>HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 862 Content-Type: application/json Expires: -1 Server: Microsoft-IIS/8.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Sun, 15 Sep 2013 03:37:14 GMT {"schema":{"namespace":"RisingTide.API.Models","alias":"Self","d4p1:UseStrongSpatialTypes":"false","xmlns:d4p1":"http://schemas.microsoft.com/ado/2009/02/edm/annotation","xmlns":"http://schemas.microsoft.com/ado/2009/11/edm","cSpaceOSpaceMapping":"[[\"RisingTide.API.Models.ScheduledPayment\",\"RisingTide.API.Models.ScheduledPayment\"]]","entityType":{"name":"ScheduledPayment","key":{"propertyRef":{"name":"Id"}},"property":[{"name":"Id","type":"Edm.Int32","nullable":"false","d4p1:StoreGeneratedPattern":"Identity"},{"name":"Description","type":"Edm.String","fixedLength":"false","maxLength":"4000","unicode":"true","nullable":"true"},{"name":"Amount","type":"Edm.Decimal","precision":"18","scale":"2","nullable":"false"}]},"entityContainer":{"name":"ScheduledPaymentsDbContext","entitySet":{"name":"ScheduledPayments","entityType":"Self.ScheduledPayment"}}}} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload