Log error message body
All checks were successful
All checks were successful
This commit is contained in:
parent
70c481e545
commit
b01f9c027d
@ -245,8 +245,8 @@ export default class IdNotService extends BaseService {
|
||||
console.error(`User ${user.uid} not found in idnot`);
|
||||
return;
|
||||
} else if (userRawData.status !== 200) {
|
||||
console.error(`Error fetching user data for ${user.uid}: ${userRawData.status} - ${userRawData.statusText}`);
|
||||
console.error(await userRawData.text());
|
||||
console.error(`Error fetching user data for ${user.uid}: ${userRawData.status} - ${userRawData.body}`);
|
||||
console.error(JSON.stringify(await userRawData.json()));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -258,7 +258,6 @@ export default class IdNotService extends BaseService {
|
||||
let rattachements: any;
|
||||
|
||||
console.log("Fetching rattachements for user", user.uid);
|
||||
console.log(searchParams.toString());
|
||||
try {
|
||||
rattachements = await fetch(`${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/personnes/${user.idNot}/rattachements?deleted=false` + searchParams, {
|
||||
method: "GET",
|
||||
|
Loading…
x
Reference in New Issue
Block a user