Greasy Fork is available in English.

Discuții » Parere despre Geasy Fork

Too many redirects when gf cookies expire?

§
Postat în: 18-10-2022

Hello, I'm not sure if this a common issue, it happend here several times, when the gf login expires, browser will be redirected many times and stop retry.

§
Postat în: 18-10-2022

What URL is redirecting to what?

§
Postat în: 19-10-2022

^(https://greasyfork.org/.*)$

redirects to

itself, namely $1

§
Postat în: 19-10-2022

Chrome says:

This page isn’t working
greasyfork.org redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

I export cookies to firefox, same error occurs.

§
Postat în: 19-10-2022

the expired cookies used:

[
{
    "domain": ".greasyfork.org",
    "expirationDate": 1700703438.909481,
    "hostOnly": false,
    "httpOnly": false,
    "name": "_ga",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": false,
    "storeId": "0",
    "value": "GA1.1.1564101227.1664770425",
    "id": 1
},
{
    "domain": ".greasyfork.org",
    "expirationDate": 1700703438.9085,
    "hostOnly": false,
    "httpOnly": false,
    "name": "_ga_7NMRNRYW7C",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": false,
    "storeId": "0",
    "value": "GS1.1.1666143438.33.0.1666143438.0.0.0",
    "id": 2
},
{
    "domain": ".greasyfork.org",
    "hostOnly": false,
    "httpOnly": true,
    "name": "_greasyfork_session",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": true,
    "storeId": "0",
    "value": "Xk1nOFNFEyBdiFAg5VsQvrOeSs4PGdRKirSP9L%2FJCHuZ5q5kbYk%2Bn3HLOoB4DZSHx8Ar0szIfF66n9GrhjRPX3eOihvhgiPa4Nx3iBjUiW1J0uOGt4xph8g0XsoQOEov3EvN%2FW5uWAbe7lazFMMlaUQDvJrDJH%2FU%2BRYhKE9wSKIz3fjbQo8K8FVsiSypBY9TLAfhb%2FgUAK4dPf3oHn6zJNw7uSeO9Ddsji1P6HUK4Vp8ctJGsr2iubS8VLcu536JQL6ZruFsIaRx9FWUvxhdYo8hd7WwPADICQUnfT2hCNEA1ALK%2FBRRvL%2FDOXXcCZ4NcSwqvcgfUJb7shIWyheui2jTo4ZRfmzZyhaEwlwYhu9CulLVEIjO89KsyjU%2B3gLPf8k0BmSReUpFwvzUe6BhfJcNb%2F%2BD5SMaGwB0TlsT7yNuDcpW67QiwxY44UkxArZGqyZ3h4ZWdJS%2Fqp5%2BmR80KQVfVvERyBYNnvNGrLr%2F%2Fw%3D%3D--9BJ4wNCwJwTZaf%2B6--jO9deTIv5GqbsUBadq5nTw%3D%3D",
    "id": 3
},
{
    "domain": ".greasyfork.org",
    "hostOnly": false,
    "httpOnly": true,
    "name": "locale_messaged",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": true,
    "storeId": "0",
    "value": "true",
    "id": 4
},
{
    "domain": "greasyfork.org",
    "hostOnly": true,
    "httpOnly": true,
    "name": "_greasyfork_session",
    "path": "/",
    "sameSite": "lax",
    "secure": true,
    "session": true,
    "storeId": "0",
    "value": "jivzeF6dea9UW8HAAH6BxhmA0A%2FPgjTqlAh6X7r4PLraJg1slwWuEi0KHGHvI0nftYYc4KlRWJF5uL1WsSxzxlU%2BWE03AZ2yu4spLuTuLxZu5oG1%2BJt1i21Pzk3XNptaZM51ARdpheABcnZw%2FEsW6YQMaZu6XHD%2FQ%2FzlB1iMiIacF4GB%2F9alfli88bSYnxy2t7mMTrQNy%2BPqaSGsTekzOaQQeRr5oRgRuGD3dOBQ0Au%2Fzo8pywcMQW4CY1YRYObWkzz19I%2FDbpsTBuwa4LUIGn4Mr%2BjjK2Ef7A7lllPxhjBz9yYyQcoUPi4Jk2TK4vsdCIQpqJahNWwq42aLUu9Xy%2BGxre4yox6bDFO15claPeXQuVKE18gJALTQGqJc8nocE4NdAwksX6MrF21GUaeQA8icbtbM6Xop7qpM2q%2BlpjwL9l9nuixXU%2BBBhGka6Qjgfqjltgr7FNlwdI0KAe1H73dqDh477f0iS%2BvQd%2Bp%2F0mRZAdjSUrT8VzbsMhtGbowHBLfPqABbMg0yPBoCFw0mux2alnNVBMaIxvIKI5ZuyfXTxf%2FPgZOE--qpxJB2DgFWgq7szG--2PpacbxE9TU1nMCzmHPUEw%3D%3D",
    "id": 5
}
]
§
Postat în: 19-10-2022

Can you post the request and response headers of the redirect?

§
Postat în: 19-10-2022
Editat în: 19-10-2022

Can you post the request and response headers of the redirect?

response heaers:

access-control-allow-origin: *
cache-control: no-cache
content-type: text/html; charset=utf-8
date: Wed, 19 Oct 2022 01:52:33 GMT
location: https://greasyfork.org/zh-CN/discussions/greasyfork/153914-too-many-redirects-when-gf-cookies-expire
server: nginx/1.18.0 (Ubuntu)
set-cookie: _greasyfork_session=d7%2F1qHqPqhBWR3fAUee8CCjfBlKxzIQAfnsSFVjRbrOaroFcClLUISTPONt%2FHk6caJ0%2BOq8BAhjR5kVl5rwTaMvh5RrIQG2I6vsDuGZ9WqUZxppkEf9IxA3hdFunLLe573doYprmzEB9gWkQMwjn5gFGPlVtA5doBMSnEj9Q82Bm7rYLLDtCLLm8Kp8As4n%2F7TXUiuBvgJ7HdckHcYRmrtrXSp32c%2FKS1MWjPWe%2Ba7fETGhvisReTo1hExhFh9SLPaOdwGGC5dVbdnh%2BYxHwSOG3EZBLePXHhw3pk8Sp%2FRSSHRjCRnSEOfOzPIbeJFvL11I2CtFWxsHe7iZzqyXAYjMIY0ruYIiidLs70fUVnrfU9djgCV1Mvjh1jft4DG4M5mUAnI4CrOk3I%2BcvEPKH2ZZOjIfBBl6gkyGTgHlQK0sMwHllGv6hsl2IfmXoSXzgWiDGZWBqPTTsWU8ZbcR72mL7hQsWEfdC6NclF%2FZEthek9Pn13oCj%2FYXaG4uYnijkOJGS%2BF8ucMfuv4YHNyyi6i1jkZw%2BFbzEOSTp--%2BBfs1KYlfN%2BBdZgY--xLpjJkJQwaZIdaTMMk379g%3D%3D; path=/; secure; HttpOnly; SameSite=Lax
strict-transport-security: max-age=31536000
x-backend-server: janeway
x-request-id: 64081cbd-5cf2-4a19-87b2-46acbf97e828
x-runtime: 0.139585

request heaers:

:authority: greasyfork.org
:method: GET
:path: /zh-CN/discussions/greasyfork/153914-too-many-redirects-when-gf-cookies-expire
:scheme: https
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
accept-encoding: gzip, deflate, br
accept-language: en,zh-CN;q=0.9,zh-TW;q=0.8,zh;q=0.7,ja;q=0.6
cache-control: max-age=0
cookie: locale_messaged=true; _greasyfork_session=Xk1nOFNFEyBdiFAg5VsQvrOeSs4PGdRKirSP9L%2FJCHuZ5q5kbYk%2Bn3HLOoB4DZSHx8Ar0szIfF66n9GrhjRPX3eOihvhgiPa4Nx3iBjUiW1J0uOGt4xph8g0XsoQOEov3EvN%2FW5uWAbe7lazFMMlaUQDvJrDJH%2FU%2BRYhKE9wSKIz3fjbQo8K8FVsiSypBY9TLAfhb%2FgUAK4dPf3oHn6zJNw7uSeO9Ddsji1P6HUK4Vp8ctJGsr2iubS8VLcu536JQL6ZruFsIaRx9FWUvxhdYo8hd7WwPADICQUnfT2hCNEA1ALK%2FBRRvL%2FDOXXcCZ4NcSwqvcgfUJb7shIWyheui2jTo4ZRfmzZyhaEwlwYhu9CulLVEIjO89KsyjU%2B3gLPf8k0BmSReUpFwvzUe6BhfJcNb%2F%2BD5SMaGwB0TlsT7yNuDcpW67QiwxY44UkxArZGqyZ3h4ZWdJS%2Fqp5%2BmR80KQVfVvERyBYNnvNGrLr%2F%2Fw%3D%3D--9BJ4wNCwJwTZaf%2B6--jO9deTIv5GqbsUBadq5nTw%3D%3D; _ga_7NMRNRYW7C=GS1.1.1664772236.32.1.1664772255.0.0.0; _ga=GA1.2.1564101227.1664770425
dnt: 1
if-none-match: W/"5adca7aef0acc65f5446f8d99b988179"
referer: https://greasyfork.org/zh-CN/discussions/greasyfork/153914-too-many-redirects-when-gf-cookies-expire
sec-ch-ua: "Chromium";v="105", "Not)A;Brand";v="8"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: document
sec-fetch-mode: navigate
sec-fetch-site: same-origin
sec-fetch-user: ?1
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
§
Postat în: 19-10-2022

Well, I see you in the logs, but I don't quite understand what's going on. In the nginx logs, I see the redirect loop as you describe, but in the puma logs, it shows up as a loop of GET /unauthenticated.

Possibly related to you having 2 _greasyfork_session cookies for some reason?

§
Postat în: 19-10-2022

Possibly related to you having 2 greasyforksession cookies for some reason?

After delete either _greasyfork_session, there is only one redirect, so this is indeed the reason. I'm not sure why where are two greasyforksession in the cookies, maybe caused by a chrome extension, like EditThisCookie.

§
Postat în: 19-10-2022

I guess when the cookies expired and the browser get set-cookie directive from the response the first time, some extension can't handle it properly, so append it to cookies instead of overwriting the old one.

Postează un raspuns

Autentifică-te pentru a posta un răspuns.