felizgata
(HUIFANG GU)
February 25, 2024, 11:11pm
1
In my app, I have set up the sdk with the right token, I can make other query, however When I try to upload a file to a column on a board, it hits an internal server error.
my code as following:
const file = await fetch('/images/test.pdf').then(r => r.arrayBuffer());
console.log(file)
const query = mutation {add_file_to_column (item_id: 1844256842, column_id: "files", file: ${file}) {id}}
try{
const response = await monday.api(query)
console.log(24, response)
}catch(e){
console.log(e)
}
error message as follow
dvdsmpsn
(David @ David Simpson Apps)
February 25, 2024, 11:23pm
2
What does the status page say?
Is there an outage in the APIs at this moment?
felizgata
(HUIFANG GU)
February 25, 2024, 11:27pm
3
I clicked the status page, it just says “This content is blocked. Contact the site owner to fix the issue.”
dvdsmpsn
(David @ David Simpson Apps)
February 25, 2024, 11:47pm
4
Yeah, you’re trying to open a status page in an iframe and the CSP breaks that. Open the link in a new browser window/tab
felizgata
(HUIFANG GU)
February 28, 2024, 3:39am
6
it leads me to a general status page
Same problem here, did you manage to fix it?