{"action":"closed","issue":{"url":"https://api.github.com/repos/FreshRSS/FreshRSS/issues/1176","repository_url":"https://api.github.com/repos/FreshRSS/FreshRSS","labels_url":"https://api.github.com/repos/FreshRSS/FreshRSS/issues/1176/labels{/name}","comments_url":"https://api.github.com/repos/FreshRSS/FreshRSS/issues/1176/comments","events_url":"https://api.github.com/repos/FreshRSS/FreshRSS/issues/1176/events","html_url":"https://github.com/FreshRSS/FreshRSS/issues/1176","id":167184755,"number":1176,"title":"[EasyRSS] Invalid JSON Input","user":{"login":"postblue","id":696539,"avatar_url":"https://avatars.githubusercontent.com/u/696539?v=3","gravatar_id":"","url":"https://api.github.com/users/postblue","html_url":"https://github.com/postblue","followers_url":"https://api.github.com/users/postblue/followers","following_url":"https://api.github.com/users/postblue/following{/other_user}","gists_url":"https://api.github.com/users/postblue/gists{/gist_id}","starred_url":"https://api.github.com/users/postblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postblue/subscriptions","organizations_url":"https://api.github.com/users/postblue/orgs","repos_url":"https://api.github.com/users/postblue/repos","events_url":"https://api.github.com/users/postblue/events{/privacy}","received_events_url":"https://api.github.com/users/postblue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-23T13:40:47Z","updated_at":"2016-07-26T08:49:02Z","closed_at":"2016-07-26T08:49:02Z","body":"Depuis je ne sais pas quand, [EasyRSS](https://github.com/Alkarex/EasyRSS) ne veut plus récupérer les articles de mon installation FreshRSS. Pourtant, l'API est correctement configurée derrière NGinx.\r\n\r\n* Hôte\r\n\r\n```nginx\r\nserver {\r\n        listen 80;\r\n        server_name fresh.postblue.info;\r\n\r\n        location / {\r\n                return 301 https://$server_name$request_uri;\r\n        }\r\n}\r\n\r\nserver {\r\n\tlisten 443 ssl http2;\r\n\tserver_name  fresh.postblue.info;\r\n\r\n\troot /var/www/freshrss/p;\r\n        include snippets/letsencrypt-postblue.conf;\r\n        include snippets/ssl2aplus.conf;\r\n        index index.php index.html;\r\n\r\n\taccess_log /var/log/nginx/freshrss.access.log;\r\n        error_log /var/log/nginx/freshrss.error.log error;\r\n\r\n\tlocation ~ ^.+?\\.php(/.*)?$ {\r\n\t\tinclude snippets/fastcgi-php.conf;\r\n\t\tfastcgi_pass unix:/var/run/freshrss.sock;\r\n\t}\r\n}\r\n```\r\n\r\n* `snippets/fastcgi-php.conf`\r\n\r\n```nginx\r\n# regex to split $uri to $fastcgi_script_name and $fastcgi_path\r\nfastcgi_split_path_info ^(.+\\.php)(/.+)$;\r\n\r\n# Check that the PHP script exists before passing it\r\ntry_files $fastcgi_script_name =404;\r\n\r\n# Bypass the fact that try_files resets $fastcgi_path_info\r\n# see: http://trac.nginx.org/nginx/ticket/321\r\nset $path_info $fastcgi_path_info;\r\nfastcgi_param PATH_INFO $path_info;\r\n\r\nfastcgi_index index.php;\r\ninclude fastcgi.conf;\r\n```\r\n\r\n* `fastcgi.conf`\r\n\r\n```nginx\r\nfastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;\r\nfastcgi_param  QUERY_STRING       $query_string;\r\nfastcgi_param  REQUEST_METHOD     $request_method;\r\nfastcgi_param  CONTENT_TYPE       $content_type;\r\nfastcgi_param  CONTENT_LENGTH     $content_length;\r\n\r\nfastcgi_param  SCRIPT_NAME        $fastcgi_script_name;\r\nfastcgi_param  REQUEST_URI        $request_uri;\r\nfastcgi_param  DOCUMENT_URI       $document_uri;\r\nfastcgi_param  DOCUMENT_ROOT      $document_root;\r\nfastcgi_param  SERVER_PROTOCOL    $server_protocol;\r\nfastcgi_param  REQUEST_SCHEME     $scheme;\r\nfastcgi_param  HTTPS              $https if_not_empty;\r\n\r\nfastcgi_param  GATEWAY_INTERFACE  CGI/1.1;\r\nfastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;\r\n\r\nfastcgi_param  REMOTE_ADDR        $remote_addr;\r\nfastcgi_param  REMOTE_PORT        $remote_port;\r\nfastcgi_param  SERVER_ADDR        $server_addr;\r\nfastcgi_param  SERVER_PORT        $server_port;\r\nfastcgi_param  SERVER_NAME        $server_name;\r\n\r\n# PHP only, required if PHP was built with --enable-force-cgi-redirect\r\nfastcgi_param  REDIRECT_STATUS    200;\r\n```\r\n\r\n[Page de test de l'API](https://fresh.postblue.info/api/) : PASS pour full et partial server configuration.\r\n\r\nAccess log au rafraîchissement de EasyRSS : \r\n\r\n```log\r\n62.4.130.169 - - [23/Jul/2016:15:24:22 +0200] \"GET /api/greader.php/reader/api/0/tag/list?client=android&output=json&ck=1469280259851 HTTP/1.1\" 200 273 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:22 +0200] \"GET /api/greader.php/reader/api/0/subscription/list?client=android&output=json&ck=1469280260449 HTTP/1.1\" 200 7168 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:23 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?n=5&likes=false&comments=false&r=n&client=android&output=json&ck=1469280261359 HTTP/1.1\" 200 21747 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:24 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1469268053392242&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280262320 HTTP/1.1\" 200 209766 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:28 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1469167224421457&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280266417 HTTP/1.1\" 200 90786 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:31 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1469059269714466&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280269153 HTTP/1.1\" 200 86073 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:34 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1468940409914927&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280271817 HTTP/1.1\" 200 149649 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:37 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1468839641610580&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280275186 HTTP/1.1\" 200 118959 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n62.4.130.169 - - [23/Jul/2016:15:24:40 +0200] \"GET /api/greader.php/reader/api/0/stream/contents/?c=1468652436779840&n=50&likes=false&comments=false&r=n&client=android&output=json&ck=1469280277897 HTTP/1.1\" 200 32 \"-\" \"Dalvik/2.1.0 (Linux; U; Android 6.0.1; GT-I9505 Build/MOB30R)\"\r\n```\r\n\r\n* pool FPM `freshrss.conf`\r\n\r\n```conf\r\n[freshrss]\r\n\r\nuser = www-data\r\ngroup = www-data\r\n\r\nlisten = /var/run/freshrss.sock\r\nlisten.owner = www-data\r\nlisten.group = www-data\r\nlisten.mode = 0660\r\n\r\npm = ondemand\r\npm.max_children = 10\r\n\r\nchdir = /\r\n\r\nenv[HOSTNAME] = $HOSTNAME\r\nenv[PATH] = /usr/local/bin:/usr/bin:/bin\r\nenv[TMP] = /tmp\r\nenv[TMPDIR] = /tmp\r\nenv[TEMP] = /tmp\r\n```"}}
{"actor":{"display_login":"Alkarex"}}