I have this code in php thats worked well until version “2024-10” :
$query = 'mutation ($file: File!, $update_id: ID!) {
add_file_to_update (
file: $file,
update_id: $update_id
) {
id
}
}';
$response = Http::attach(
'variables[file]',
file_get_contents($file->getPathname()),
$file->getClientOriginalName()
)
->attach('query', $query)
->attach('variables[update_id]', $updateId)
->withHeaders([
'Authorization' => config('monday.token')
])
->post(config('monday.api_url'));
But now in versions from “2024-10” the API returns this :
[
{
"message": "internal server error",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
I have no more informations about why I’m getting this error and I can’t figure it out myself. Can someone help me ?
NB : the file is sent in binary, and it worked well before.
Thanks in advance !