Closed anicalbano closed 4 months ago
A request is failing through signedFetch
related to login:
curl 'https://v2.lowpolyhub.com:3000/loginWithDcl' -X POST
The external server is responding with an error:
HTTP/1.1 409 Conflict
{"statusCode":409,"message":"DCL login information not valid","error":"Conflict"}
The authentication headers we are injecting into the requests looks the same as it in explorer webGL (which currently works), but even tho it doesn't work on explorer-alpha. Although we are missing cors
, but we cannot do it from the UnityWebRequest
since its a server side configuration.
This is how the request looks on webGL:
curl 'https://v2.lowpolyhub.com:3000/loginWithDcl' -X POST
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0'
-H 'Accept: */*'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate, br, zstd'
-H 'Referer: https://decentraland.org/'
-H 'x-identity-auth-chain-0: {"type":"SIGNER","payload":"0x6275bb9fe9036113fda58db1b49528cb93388421","signature":""}'
-H 'x-identity-auth-chain-1: {"type":"ECDSA_EPHEMERAL","payload":"Decentraland Login\nEphemeral address: 0x684208a5b74d91509aC3E80C6e45d45394eF17da\nExpiration: 2024-08-22T18:24:58.454Z","signature":"0x..."}'
-H 'x-identity-auth-chain-2: {"type":"ECDSA_SIGNED_ENTITY","payload":"post:/loginwithdcl:1721759308313:{\"origin\":\"https://decentraland.org\",\"sceneid\":\"bafkreic5dxyxeqqt63znrsw6burxjxkvqod3y74tmhleorztjn37miqja4\",\"parcel\":\"-55,-121\",\"tld\":\"org\",\"network\":\"mainnet\",\"isguest\":false,\"realm\":{\"hostname\":\"realm-provider.decentraland.org\",\"protocol\":\"v3\",\"servername\":\"main\"},\"signer\":\"decentraland-kernel-scene\"}","signature":"0x..."}'
-H 'x-identity-timestamp: 1721759308313'
-H 'x-identity-metadata: {"origin":"https://decentraland.org","sceneId":"bafkreic5dxyxeqqt63znrsw6burxjxkvqod3y74tmhleorztjn37miqja4","parcel":"-55,-121","tld":"org","network":"mainnet","isGuest":false,"realm":{"hostname":"realm-provider.decentraland.org","protocol":"v3","serverName":"main"},"signer":"decentraland-kernel-scene"}'
-H 'Content-Type: application/json'
-H 'Origin: https://decentraland.org'
-H 'Connection: keep-alive'
-H 'Sec-Fetch-Dest: empty'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Site: cross-site'
-H 'Priority: u=4'
--data-raw '{"wallet":"0x6275bb9fe9036113fda58db1b49528cb93388421","username":"Bleh#8421"}'
This is how the request is done in Explorer-Alpha:
curl 'https://v2.lowpolyhub.com:3000/loginWithDcl' -X POST
-H 'Referer: https://decentraland.org/'
-H 'x-identity-auth-chain-0: {"type":"SIGNER","payload":"0x43d803d72ba0a4a785f0e46d3b2366cd224e49df","signature":""}'
-H 'x-identity-auth-chain-1: {"type":"ECDSA_EPHEMERAL","payload":"Decentraland Login\nEphemeral address: 0x08e9E6684fbcC07218742F949b4e001B99F691f3\nExpiration: 2024-07-31T14:53:29.435Z","signature":"0x..."}'
-H 'x-identity-auth-chain-2: {"type":"ECDSA_SIGNED_ENTITY","payload":"post:/loginwithdcl:1721833159404:{\"origin\":\"https://decentraland.org\",\"sceneid\":\"bafkreic5dxyxeqqt63znrsw6burxjxkvqod3y74tmhleorztjn37miqja4\",\"parcel\":\"-55,-121\",\"tld\":\"org\",\"network\":\"mainnet\",\"isguest\":false,\"realm\":{\"hostname\":\"peer.decentraland.org\",\"protocol\":\"v3\",\"servername\":\"hela\"},\"signer\":\"decentraland-kernel-scene\"}","signature":"0x..."}'
-H 'x-identity-timestamp: 1721759308313'
-H 'x-identity-metadata: {"origin":"https://decentraland.org","sceneId":"bafkreic5dxyxeqqt63znrsw6burxjxkvqod3y74tmhleorztjn37miqja4","parcel":"-55,-121","tld":"org","network":"mainnet","isGuest":false,"realm":{"hostname":"peer.decentraland.org","protocol":"v3","serverName":"hela"},"signer":"decentraland-kernel-scene"}'
-H 'Content-Type: application/json'
-H 'Origin: https://decentraland.org'
--data-raw '{"wallet":"0x43d803d72ba0a4a785f0e46d3b2366cd224e49df","username":"Lorux0r"}'
We need help from Polygonal Mind to try to understand which validation is failing on their server to fix this issue. @nearnshaw is gathering information. I will set this issue on hold until we can get something.
On v0.15.0, while playing the 'Hammercide game,' I get the wearable modal but not the reward. Additionally, when playing 'Pair-Adise Found' with a Google account, I neither received the reward modal nor the reward.
Explorer Alpha build versions:
Issue Description:
After playing the games on the scene and collecting the amount of points, we should be getting the corresponding wearable but we are currently not receiving it.
STR:
/goto -55,-121
Expected behaviour:
After reaching the amount of points and when the game ends (time runs out), there should be a modal informing that the wearable is on it's way and, after a while, it should be present on our backpacks.
Current behaviour:
No wearable is being dropped.
Evidence:
Additional Notes: