Advertisement
vliaskov

climateconnect backend troubleshooting

Dec 5th, 2020
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. browser output when accessing localhost:3000/browse:
  2.  
  3. Server Error
  4.  
  5. Error: connect ECONNREFUSED 127.0.0.1:80
  6. This error happened while generating the page. Any console logs will be displayed in the terminal window.
  7. Call Stack
  8. <unknown> (Error: connect ECONNREFUSED
  9. 127.0.0.1 (80)
  10. TCPConnectWrap.afterConnect [as oncomplete]
  11. net.js (1145:16)
  12.  
  13.  
  14.  
  15. Output from command line django tests:
  16.  
  17. python3 manage.py test
  18. Creating test database for alias 'default'...
  19. System check identified no issues (0 silenced).
  20. .F.F.F
  21. ======================================================================
  22. FAIL: test_signup_api_success (backend.climateconnect_api.tests.test_user_views.TestSignUpView)
  23. ----------------------------------------------------------------------
  24. Traceback (most recent call last):
  25. File "/mnt/devel/climateconnect/backend/climateconnect_api/tests/test_user_views.py", line 52, in test_signup_api_success
  26. self.assertEqual(response.status_code, status.HTTP_201_CREATED)
  27. AssertionError: 400 != 201
  28.  
  29. ======================================================================
  30. FAIL: test_failed_login_api (backend.climateconnect_api.tests.test_user_views.TestUserLoginView)
  31. ----------------------------------------------------------------------
  32. Traceback (most recent call last):
  33. File "/mnt/devel/climateconnect/backend/climateconnect_api/tests/test_user_views.py", line 28, in test_failed_login_api
  34. self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
  35. AssertionError: 401 != 400
  36.  
  37. ======================================================================
  38. FAIL: test_successful_login_api (backend.climateconnect_api.tests.test_user_views.TestUserLoginView)
  39. ----------------------------------------------------------------------
  40. Traceback (most recent call last):
  41. File "/mnt/devel/climateconnect/backend/climateconnect_api/tests/test_user_views.py", line 19, in test_successful_login_api
  42. self.assertEqual(response.status_code, status.HTTP_200_OK)
  43. AssertionError: 401 != 200
  44.  
  45. ----------------------------------------------------------------------
  46. Ran 6 tests in 0.141s
  47.  
  48. FAILED (failures=3)
  49. Destroying test database for alias 'default'...
  50.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement