Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const loginUser = (email, password) => {
- return dispatch => {
- axios.post('https://reqres.in/api/login', {
- email: email,
- password: password
- }).then((response) => {
- dispatch({ type: 'LOGIN_USER_SUCCESS', payload: response });
- });
- };
- };
- YellowBox.js:67 Possible Unhandled Promise Rejection (id: 4):
- Error: Request failed with status code 400
- Error: Request failed with status code 400
- at createError (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88309:17)
- at settle (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88299:14)
- at XMLHttpRequest.handleLoad (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88212:9)
- at XMLHttpRequest.dispatchEvent (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:25005:27)
- at XMLHttpRequest.setReadyState (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24743:14)
- at XMLHttpRequest.__didCompleteResponse (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24585:16)
- at blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24695:47
- at RCTDeviceEventEmitter.emit (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:3165:37)
- at MessageQueue.__callFunction (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:2460:44)
- at blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:2233:17
Add Comment
Please, Sign In to add comment