Guest User

Untitled

a guest
Dec 6th, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. export const loginUser = (email, password) => {
  2. return dispatch => {
  3. axios.post('https://reqres.in/api/login', {
  4. email: email,
  5. password: password
  6. }).then((response) => {
  7. dispatch({ type: 'LOGIN_USER_SUCCESS', payload: response });
  8. });
  9. };
  10. };
  11.  
  12. YellowBox.js:67 Possible Unhandled Promise Rejection (id: 4):
  13. Error: Request failed with status code 400
  14. Error: Request failed with status code 400
  15. at createError (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88309:17)
  16. at settle (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88299:14)
  17. at XMLHttpRequest.handleLoad (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:88212:9)
  18. at XMLHttpRequest.dispatchEvent (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:25005:27)
  19. at XMLHttpRequest.setReadyState (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24743:14)
  20. at XMLHttpRequest.__didCompleteResponse (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24585:16)
  21. at blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:24695:47
  22. at RCTDeviceEventEmitter.emit (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:3165:37)
  23. at MessageQueue.__callFunction (blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:2460:44)
  24. at blob:http://localhost:8081/213537c5-9851-4031-b7fd-47819f043c13:2233:17
Add Comment
Please, Sign In to add comment