ParadoxLector
ParadoxLector
NNuxt
Created by ParadoxLector on 6/3/2024 in #❓・help
Posting using $fetch
Hey all! I have the following code in a server api endpoint:
const data = await $fetch(`https://api.server.com/logout/`, {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
"application_id": `${APPLICATION_ID}`,
"access_token": `${access_token}`
})
})
const data = await $fetch(`https://api.server.com/logout/`, {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
"application_id": `${APPLICATION_ID}`,
"access_token": `${access_token}`
})
})
https://api.server.com/logout/ always replays with
error: {
field: 'application_id',
message: 'APPLICATION_ID_NOT_SPECIFIED',
code: 402,
value: null
}
error: {
field: 'application_id',
message: 'APPLICATION_ID_NOT_SPECIFIED',
code: 402,
value: null
}
How do I correctly make the POST? Thank you!
8 replies
NNuxt
Created by ParadoxLector on 5/25/2024 in #❓・help
Recent upgrade from Nuxt 3.7 to 3.11 resulted in a Host Error
Hey all! I've recently upgraded my Nuxt application from Nuxt 3.7 to Nuxt 3.11 and visitors are complaining the website is (randomly) not accessible (Host Error). The application is hosted by Cloudflare Pages and it used to work flawlessly. The screen capture of the error: https://monosnap.com/file/3rKSMH4yN5IwrzJQ4vuJLzS4uXcW9w Any help is appreciated. Thank you!
1 replies