{"action":"opened","issue":{"url":"https://api.github.com/repos/Robbertdk/wordpress-ajax-filter-posts/issues/4","repository_url":"https://api.github.com/repos/Robbertdk/wordpress-ajax-filter-posts","labels_url":"https://api.github.com/repos/Robbertdk/wordpress-ajax-filter-posts/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Robbertdk/wordpress-ajax-filter-posts/issues/4/comments","events_url":"https://api.github.com/repos/Robbertdk/wordpress-ajax-filter-posts/issues/4/events","html_url":"https://github.com/Robbertdk/wordpress-ajax-filter-posts/issues/4","id":335525585,"node_id":"MDU6SXNzdWUzMzU1MjU1ODU=","number":4,"title":"JSON Parse error","user":{"login":"Tinougit","id":19748866,"node_id":"MDQ6VXNlcjE5NzQ4ODY2","avatar_url":"https://avatars0.githubusercontent.com/u/19748866?v=4","gravatar_id":"","url":"https://api.github.com/users/Tinougit","html_url":"https://github.com/Tinougit","followers_url":"https://api.github.com/users/Tinougit/followers","following_url":"https://api.github.com/users/Tinougit/following{/other_user}","gists_url":"https://api.github.com/users/Tinougit/gists{/gist_id}","starred_url":"https://api.github.com/users/Tinougit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tinougit/subscriptions","organizations_url":"https://api.github.com/users/Tinougit/orgs","repos_url":"https://api.github.com/users/Tinougit/repos","events_url":"https://api.github.com/users/Tinougit/events{/privacy}","received_events_url":"https://api.github.com/users/Tinougit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T18:51:53Z","updated_at":"2018-06-25T18:51:53Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI just found your awesome plugin and tried it but there is a JSON parse error when trying to load more or filter my posts.\r\n\r\nHere the console log error : \r\n\r\n```\r\nUncaught SyntaxError: Unexpected end of JSON input\r\n    at JSON.parse (<anonymous>)\r\n    at XMLHttpRequest.request.onload (ajax-filter-posts.js?ver=4.9.6:200)\r\n```\r\n\r\nI changed the line 188 in ajax-filter-posts.js : \r\n`request.setRequestHeader(\"Content-Type\", \"text/plain\");`\r\n\r\nIt seems to be working, but I'm not sure if it's ok and secondly, a load more or filter request now return a 400 Bad Request error:\r\n\r\n```\r\nPOST http://skald/wp-admin/admin-ajax.php 400 (Bad Request)\r\n\r\ngetAJAXPosts @ ajax-filter-posts.js?ver=4.9.6:230\r\nhandleFilterEvent @ ajax-filter-posts.js?ver=4.9.6:84\r\n(anonymous) @ ajax-filter-posts.js?ver=4.9.6:24\r\n(anonymous) @ ajax-filter-posts.js?ver=4.9.6:264\r\najax-filter-posts.js?ver=4.9.6:193\r\n\r\n0\r\n```\r\n\r\nI don't know if you're still updating this plugin, but is there a way to help me with that ?\r\n\r\nThanks."}}
{"actor":{"display_login":"Tinougit"}}