Note that there are some explanatory texts on larger screens.

plurals
  1. POWrong type object for key serialNumbers in response dictionary. Expected NSArray but found __NSCFString
    primarykey
    data
    text
    <p>i have a web service set up for passbook the error log is logging this error:</p> <p>Get serial #s task (for device 88a9cbef8e318f61, pass type pass.com.passbook, last updated (null); with web service url https://) encountered error: Server response was malformed (Wrong type object for key serialNumbers in response dictionary. Expected NSArray but found __NSCFString.)</p> <p>the code in PHP when is not found :</p> <pre><code> $updatable_passes_payload['lastUpdated'] = ''; $updatable_passes_payload['serialNumbers'] = ''; sendResponse(204, json_encode($updatable_passes_payload), 'text/json'); </code></pre> <p>when is found:</p> <pre><code> $update_time = date('Y-m-d H:i:s'); $updatable_passes_payload['lastUpdated'] = $update_time; $updatable_passes_payload['serialNumbers'] = json_encode($types); sendResponse(200, json_encode($updatable_passes_payload), 'text/json'); </code></pre> <p>the web service json :</p> <pre><code>HTTP/1.1 200 OK Connection: close Transfer-Encoding: Identity Content-Type: text/json X-Powered-By: PHP/5.4.22 Server: Apache mod_fcgid/2.3.10-dev Date: Sun, 01 Dec 2013 23:25:08 GMT {"lastUpdated":"2013-12-01 23:25:09","serialNumbers":"[\"102058742\"]"} i checked this json in a json validator online it returns OK </code></pre> <p>when is not found it returns</p> <pre><code>HTTP/1.1 204 No Content Connection: close Content-Type: text/json X-Powered-By: PHP/5.4.22 Server: Apache mod_fcgid/2.3.10-dev Date: Sun, 01 Dec 2013 23:35:17 GMT </code></pre> <p>for some reason is not returning any json when not found</p> <p>any help will be appreciated</p>
    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