OWASP/crAPI

ERROR: for crapi-web Container "633939b7dda7" is unhealthy.

zhibx opened this issue · 0 comments

zhibx commented

Describe the bug

┌──(root㉿kali)-[/home/kali/car]
└─# VERSION=develop docker-compose -f docker-compose.yml --compatibility up -d
Creating network "car_default" with the default driver
Creating volume "car_mongodb-data" with default driver
Creating volume "car_postgresql-data" with default driver
Creating postgresdb ... done
Creating mongodb    ... done
Creating mailhog    ... done
Creating crapi-identity ... done
Creating crapi-community ... done
Creating crapi-workshop  ... done

ERROR: for crapi-web  Container "633939b7dda7" is unhealthy.
ERROR: Encountered errors while bringing up the project.
                                                                                                                 
┌──(root㉿kali)-[/home/kali/car]
└─# docker logs 633939b7dda7
Creating test database for alias 'default'...
Creating test database for alias 'mongodb'...
root         ERROR    /workshop/api/mechanic/signup - {'name': 'MechRaju', 'email': 'mechraju@crapi.com', 'mechanic_code': 'TRAC_MEC_3', 'number': '9123456708'} - 400 -{'password': [ErrorDetail(string='This field is required.', code='required')]}
django.request WARNING  Bad Request: /workshop/api/mechanic/signup
.django.request WARNING  Bad Request: /workshop/api/mechanic/signup
.django.request WARNING  Bad Request: /workshop/api/mechanic/signup
.django.request WARNING  Unauthorized: /workshop/api/mechanic/
django.request WARNING  Unauthorized: /workshop/api/mechanic/
.django.request WARNING  Unauthorized: /workshop/api/mechanic/
..root         ERROR    /workshop/api/merchant/contact_mechanic - {'mechanic_api': 'https://www.google.com', 'number_of_repeats': 5, 'mechanic_code': 'TRAC_MEC_3', 'vin': '9NFXO86WBWA082766', 'problem_details': 'My Car is not working'} - 400 -{'repeat_request_if_failed': [ErrorDetail(string='This field is required.', code='required')]}
django.request WARNING  Bad Request: /workshop/api/merchant/contact_mechanic
.root         INFO     Repeat count: 0
root         INFO     Repeat count: 1
root         INFO     Repeat count: 2
root         INFO     Repeat count: 3
root         INFO     Repeat count: 4
root         INFO     Repeat count: 5
django.request WARNING  Bad Request: /workshop/api/merchant/contact_mechanic
Fdjango.request ERROR    Service Unavailable: /workshop/api/merchant/contact_mechanic
..root         INFO     Repeat count: 0
root         INFO     Repeat count: 1
root         INFO     Repeat count: 2
root         INFO     Repeat count: 3
root         INFO     Repeat count: 4
root         INFO     Repeat count: 5
django.request WARNING  Not Found: /workshop/api/merchant/contact_mechanic
.django.request WARNING  Bad Request: /workshop/api/shop/apply_coupon
ProductTest  INFO     {'message': 'TRAC100 Coupon code is already claimed by you!! Please try with another coupon code'}
.root         ERROR    /workshop/api/shop/apply_coupon - {'coupon_code': 'TRAC105', 'amount': 75} - 400 -Coupon matching query does not exist.
django.request WARNING  Bad Request: /workshop/api/shop/apply_coupon
ProductTest  INFO     {'message': 'Coupon not found'}
.django.request WARNING  Bad Request: /workshop/api/shop/apply_coupon
ProductTest  INFO     {'message': '9123456708 Coupon code is already claimed by you!! Please try with another coupon code'}
.ProductTest  INFO     {'credit': 175.0, 'message': 'Coupon successfully applied!'}
This version of djongo does not support "NULL, NOT NULL column validation check" fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "schema validation using CONSTRAINT" fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "schema validation using KEY" fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "schema validation using REFERENCES" fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "COLUMN DROP NOT NULL " fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "DROP CASCADE" fully. Visit https://www.patreon.com/nesdis
System check identified no issues (0 silenced).
.
======================================================================
FAIL: test_contact_mechanic (app.crapi.merchant.tests.MerchantTestCase)
gives all correct field for contact mechanic
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/app/crapi/merchant/tests.py", line 134, in test_contact_mechanic
    self.assertEqual(res.status_code, 200)
AssertionError: 400 != 200

----------------------------------------------------------------------
Ran 15 tests in 148.608s

FAILED (failures=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'mongodb'...

Runtime Environment
kali2022.03
Linux kali 6.0.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.10-2kali1 (2022-12-06) x86_64 GNU/Linux