AxiosError

Nade04 Messages postés 1 Date d'inscription   Statut Membre Dernière intervention   -  
Panth33ra Messages postés 21852 Date d'inscription   Statut Membre Dernière intervention   -

Bonjour,
 

J'ai un problème je n'arrive plus à utiliser l'identifiant administrateur de mon application est-ce que quelqu'un pourrait me renseigner j'ai 2 erreurs Axios la 1ère 
05:19:58.425 hook.js:608 Erreur serveur : AxiosErrorcode: "ERR_BAD_RESPONSE"config: adapter: Array(3)0: "xhr"1: "http"2: "fetch"length: 3[[Prototype]]: Array(0)at: ƒ at()concat: ƒ concat()constructor: ƒ Array()copyWithin: ƒ copyWithin()entries: ƒ entries()every: ƒ every()fill: ƒ fill()filter: ƒ filter()find: ƒ find()findIndex: ƒ findIndex()findLast: ƒ findLast()findLastIndex: ƒ findLastIndex()flat: ƒ flat()flatMap: ƒ flatMap()forEach: ƒ forEach()includes: ƒ includes()indexOf: ƒ indexOf()join: ƒ join()keys: ƒ keys()lastIndexOf: ƒ lastIndexOf()length: 0map: ƒ map()pop: ƒ pop()push: ƒ push()reduce: ƒ reduce()reduceRight: ƒ reduceRight()reverse: ƒ reverse()shift: ƒ shift()slice: ƒ slice()some: ƒ some()sort: ƒ sort()splice: ƒ splice()toLocaleString: ƒ toLocaleString()toReversed: ƒ toReversed()toSorted: ƒ toSorted()toSpliced: ƒ toSpliced()toString: ƒ toString()unshift: ƒ unshift()values: ƒ values()with: ƒ with()Symbol(Symbol.iterator): ƒ values()Symbol(Symbol.unscopables): {at: true, copyWithin: true, entries: true, fill: true, find: true, …}[[Prototype]]: ObjectallowAbsoluteUrls: truedata: "{\"email\":\"***@***\",\"password\":\"password\",\"password_confirmation\":\"password\"}"env: Blob: ƒ Blob()FormData: ƒ FormData()[[Prototype]]: Objectheaders: AxiosHeaders {Accept: 'application/json, text/plain, */*', Content-Type: 'application/json', Authorization: 'Bearer null'}maxBodyLength: -1maxContentLength: -1method: "post"timeout: 0transformRequest: Array(1)0: ƒ transformRequest(data, headers)length: 1[[Prototype]]: Array(0)transformResponse: [ƒ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "http://127.0.0.1:8000/api/login"validateStatus: ƒ validateStatus(status)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequestonabort: ƒ handleAbort()onerror: ƒ handleError()onload: nullonloadend: ƒ onloadend()onloadstart: nullonprogress: nullonreadystatechange: nullontimeout: ƒ handleTimeout()readyState: 4response: "{\n    \"message\": \"Malformed UTF-8 characters,responseText: "{\n    \"message\": \"Malformed UTF-8 characters,responseType: ""responseURL: "http://127.0.0.1:8000/api/login"responseXML: nullstatus: 500statusText: "Internal Server Error"timeout: 0upload: XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …}withCredentials: false[[Prototype]]: XMLHttpRequestresponse: config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}data: {message: 'Malformed UTF-8 characters, possibly incorrectly encoded', exception: 'InvalidArgumentException', file: 'C:\\Users\\Nadege\\Projet-rando-ouest\\Rando-front-et-…el\\framework\\src\\Illuminate\\Http\\JsonResponse.php', line: 90, trace: Array(38)}headers: AxiosHeaders {cache-control: 'no-cache, private', content-type: 'application/json'}request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}status: 500statusText: "Internal Server Error"[[Prototype]]: Objectstatus: 500stack: "AxiosError: Request failed with status code 500\n    at settle (http://localhost:3000/static/js/bundle.js:9858:12)\n    at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:8495:66)\n    at Axios.request (http://localhost:3000/static/js/bundle.js:8994:41)\n    at async onSubmit (http://localhost:3000/static/js/bundle.js:159518:24)\n    at async http://localhost:3000/static/js/bundle.js:87004:9"[[Prototype]]: Error
***@***:608
05:20:07.811 hook.js:608 Erreur serveur : AxiosErrorcode: "ERR_BAD_RESPONSE"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: {…}, status: 500, statusText: 'Internal Server Error', headers: AxiosHeaders, config: {…}, …}status: 500stack: "AxiosError: Request failed with status code 500\n    at settle (http://localhost:3000/static/js/bundle.js:9858:12)\n    at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:8495:66)\n    at Axios.request (http://localhost:3000/static/js/bundle.js:8994:41)\n    at async onSubmit (http://localhost:3000/static/js/bundle.js:159518:24)\n    at async http://localhost:3000/static/js/bundle.js:87004:9"[[Prototype]]: Errorconstructor: ƒ AxiosError(message, code, config, request, response)toJSON: ƒ toJSON()isAxiosError: true[[Prototype]]: Object
***@***:608

et la 2ème
05:19:58.425 hook.js:608 Erreur serveur : AxiosErrorcode: "ERR_BAD_RESPONSE"config: adapter: Array(3)0: "xhr"1: "http"2: "fetch"length: 3[[Prototype]]: Array(0)at: ƒ at()concat: ƒ concat()constructor: ƒ Array()copyWithin: ƒ copyWithin()entries: ƒ entries()every: ƒ every()fill: ƒ fill()filter: ƒ filter()find: ƒ find()findIndex: ƒ findIndex()findLast: ƒ findLast()findLastIndex: ƒ findLastIndex()flat: ƒ flat()flatMap: ƒ flatMap()forEach: ƒ forEach()includes: ƒ includes()indexOf: ƒ indexOf()join: ƒ join()keys: ƒ keys()lastIndexOf: ƒ lastIndexOf()length: 0map: ƒ map()pop: ƒ pop()push: ƒ push()reduce: ƒ reduce()reduceRight: ƒ reduceRight()reverse: ƒ reverse()shift: ƒ shift()slice: ƒ slice()some: ƒ some()sort: ƒ sort()splice: ƒ splice()toLocaleString: ƒ toLocaleString()toReversed: ƒ toReversed()toSorted: ƒ toSorted()toSpliced: ƒ toSpliced()toString: ƒ toString()unshift: ƒ unshift()values: ƒ values()with: ƒ with()Symbol(Symbol.iterator): ƒ values()Symbol(Symbol.unscopables): {at: true, copyWithin: true, entries: true, fill: true, find: true, …}[[Prototype]]: ObjectallowAbsoluteUrls: truedata: "{\"email\":\"***@***\",\"password\":\"password\",\"password_confirmation\":\"password\"}"env: Blob: ƒ Blob()FormData: ƒ FormData()[[Prototype]]: Objectheaders: AxiosHeaders {Accept: 'application/json, text/plain, */*', Content-Type: 'application/json', Authorization: 'Bearer null'}maxBodyLength: -1maxContentLength: -1method: "post"timeout: 0transformRequest: Array(1)0: ƒ transformRequest(data, headers)length: 1[[Prototype]]: Array(0)transformResponse: [ƒ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "http://127.0.0.1:8000/api/login"validateStatus: ƒ validateStatus(status)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequestonabort: ƒ handleAbort()onerror: ƒ handleError()onload: nullonloadend: ƒ onloadend()onloadstart: nullonprogress: nullonreadystatechange: nullontimeout: ƒ handleTimeout()readyState: 4response: "{\n    \"message\": \"Malformed UTF-8 characters,responseText: "{\n    \"message\": \"Malformed UTF-8 characters,responseType: ""responseURL: "http://127.0.0.1:8000/api/login"responseXML: nullstatus: 500statusText: "Internal Server Error"timeout: 0upload: XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …}withCredentials: false[[Prototype]]: XMLHttpRequestresponse: config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}data: {message: 'Malformed UTF-8 characters, possibly incorrectly encoded', exception: 'InvalidArgumentException', file: 'C:\\Users\\Nadege\\Projet-rando-ouest\\Rando-front-et-…el\\framework\\src\\Illuminate\\Http\\JsonResponse.php', line: 90, trace: Array(38)}headers: AxiosHeaders {cache-control: 'no-cache, private', content-type: 'application/json'}request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}status: 500statusText: "Internal Server Error"[[Prototype]]: Objectstatus: 500stack: "AxiosError: Request failed with status code 500\n    at settle (http://localhost:3000/static/js/bundle.js:9858:12)\n    at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:8495:66)\n    at Axios.request (http://localhost:3000/static/js/bundle.js:8994:41)\n    at async onSubmit (http://localhost:3000/static/js/bundle.js:159518:24)\n    at async http://localhost:3000/static/js/bundle.js:87004:9"[[Prototype]]: Error
***@***:608
05:20:07.811 hook.js:608 Erreur serveur : AxiosErrorcode: "ERR_BAD_RESPONSE"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: {…}, status: 500, statusText: 'Internal Server Error', headers: AxiosHeaders, config: {…}, …}status: 500stack: "AxiosError: Request failed with status code 500\n    at settle (http://localhost:3000/static/js/bundle.js:9858:12)\n    at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:8495:66)\n    at Axios.request (http://localhost:3000/static/js/bundle.js:8994:41)\n    at async onSubmit (http://localhost:3000/static/js/bundle.js:159518:24)\n    at async http://localhost:3000/static/js/bundle.js:87004:9"[[Prototype]]: Errorconstructor: ƒ AxiosError(message, code, config, request, response)toJSON: ƒ toJSON()isAxiosError: true[[Prototype]]: Object
***@***:608

et une erreur
dans la partie Back avec Laravel
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql_db failed: H�te inconnu. (Connection: mysql, SQL: select * from `sessions` where `id` = S2SokMXwYVPBks7moweoQvlWROkxOOrye8LhfzUG limit 1)

Merci d'avance je suis débutante et j'ai essayé de trouver d'où vient le problème et je ne trouve pas.

1 réponse

Panth33ra Messages postés 21852 Date d'inscription   Statut Membre Dernière intervention   Ambassadeur 1 990
 

Bonjour,

Elle te sert à quoi cette application ?... Tu l'as installé sur ton PC.


0