IdleLands / IdleLands

The legendary idle MMORPG!
https://idle.land
GNU General Public License v3.0
69 stars 36 forks source link

Guild page fails to load #360

Open skralg opened 2 years ago

skralg commented 2 years ago

Started yesterday. Have applied for 2 guilds. Worked fine yesterday. After logging in today, I get the following error when trying to access the Guilds page.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://server.idle.land/api/guilds/appinv?playerName=Skralg. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 504.

followed by

ERROR 
Object { headers: {…}, status: 0, statusText: "Unknown Error", url: "https://server.idle.land:443/api/guilds/appinv", ok: false, name: "HttpErrorResponse", message: "Http failure response for https://server.idle.land:443/api/guilds/appinv: 0 Unknown Error", error: error }
​
error: error { target: XMLHttpRequest, isTrusted: true, lengthComputable: false, … }
​​
bubbles: false
​​
cancelBubble: false
​​
cancelable: false
​​
composed: false
​​
currentTarget: null
​​
defaultPrevented: false
​​
eventPhase: 0
​​
explicitOriginalTarget: XMLHttpRequest { __zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "https://server.idle.land:443/api/guilds/appinv?playerName=Skralg", __zone_symbol__xhrScheduled: true, … }
​​
isTrusted: true
​​
lengthComputable: false
​​
loaded: 0
​​
originalTarget: XMLHttpRequest { __zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "https://server.idle.land:443/api/guilds/appinv?playerName=Skralg", __zone_symbol__xhrScheduled: true, … }
​​
returnValue: true
​​
srcElement: XMLHttpRequest { __zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "https://server.idle.land:443/api/guilds/appinv?playerName=Skralg", __zone_symbol__xhrScheduled: true, … }
​​
target: XMLHttpRequest { __zone_symbol__xhrSync: false, __zone_symbol__xhrURL: "https://server.idle.land:443/api/guilds/appinv?playerName=Skralg", __zone_symbol__xhrScheduled: true, … }
​​
timeStamp: 10347633
​​
total: 0
​​
type: "error"
​​
<get isTrusted()>: function isTrusted()
​​
<prototype>: ProgressEventPrototype { lengthComputable: Getter, loaded: Getter, total: Getter, … }
​
headers: Object { normalizedNames: Map(0), lazyUpdate: null, headers: Map(0) }
​​
headers: Map(0)
​​
lazyUpdate: null
​​
normalizedNames: Map(0)
​​
<prototype>: Object { has: has(e), get: get(e), keys: keys(), … }
​
message: "Http failure response for https://server.idle.land:443/api/guilds/appinv: 0 Unknown Error"
​
name: "HttpErrorResponse"
​
ok: false
​
status: 0
​
statusText: "Unknown Error"
​
url: "https://server.idle.land:443/api/guilds/appinv"
​
<prototype>: Object { constructor: t(t) }
main.29f1668b9a739e3c6120.js:1:302942
the-crazyball commented 2 years ago

this is new, looking to see what can cause this.

the-crazyball commented 2 years ago

Try again, I was able to get data going to the URL directly in the browser: https://server.idle.land/api/guilds/appinv?playerName=Skralg

Output {"appinvs":[{"_id":"62bb03c2cd632a0126fd6793","type":"application","playerName":"Skralg","guildName":"Sisterfisters"},{"_id":"62bb39f2cd632a0126fd682b","type":"application","playerName":"Skralg","guildName":"Naked Beach"},{"_id":"62bcbd3dcd632a0126fd6afb","type":"invite","playerName":"Skralg","guildName":"Eternal Collectors"}]}