Jump to content

JordanX

Member
  • Content Count

    6
  • Joined

  • Last visited

  1. Hi, I fixed it on the server side by cleaning up the XML (backslashes and d.quotes)
  2. @deanishe Yes, caught that and updated post. Still getting the same error. Happy to post the Workflow, any suggestions on how/where I should post it? [2016-10-23 12:19:23][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: "<items><item uid= "test" arg= "one"><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items>"
  3. Working on Workflow...Script Filter Alfredv3.1.1 (737) Mac O SX 10.12 Dropbox Link <removed> Trying to get the results displayed as choices in Alfred. Error [ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON With (bash) base_uri="https://xyz.execute-api.us-west-2.amazonaws.com/prod/listfromalfred?user=${user}&task=${data}" post_result=$(/usr/local/bin/curl -X GET ${base_uri}) post_success=`echo ${post_result} | grep items` echo ${post_success} | sed 's/\\//g' This test code works #test='<items><item uid= "test " arg= "one "><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items>' #echo ${test} However, when I call the API I get: 'Response code: 200\n' [2016-10-23 12:19:23][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: "<items><item uid= "test" arg= "one"><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items>" Debugging for hours and can't seem to fix the issue. Trying to get the results displayed as choices in Alfred. HELP
×
×
  • Create New...