clarkwinkelmann
there is no shown 500 error
response is null
status code 0
im using this to call the page
app.request({
method: 'post',
url: app.forum.attribute('baseUrl') + '/page,
timeout: 300,
body: {
var1 : this.var1,
var2 : this.var2
},
deserialize: function(value) {
return value
}
}).then(function(val) {
writeoutput = 'Output',
writeoutput += val,
m.redraw()
})
browser log
{
"status": 0,
"options": {
"method": "POST",
"url": "https://xxx.com/page",
"timeout": 300,
"body": {
"post1": "trying",
"post2": "tryinggg"
},
"background": true
},
"xhr": {},
"responseText": null,
"response": null,
"alert": {
"type": "error",
"content": [
"Oops! Something went wrong. Please reload the page and try again."
],
"controls": false
}
}
debug modal /extension settings in admin panel
0
POST https://xxx/page
null
when i go directly
Flarum \ Http \ Exception \ MethodNotAllowedException
GET