Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrityError: new row for relation "facility_patientregistration" violates check constraint "facility_patientre... #1915

Closed
sentry-io bot opened this issue Feb 26, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 26, 2024

Sentry Issue: CARE-W1

CheckViolation: new row for relation "facility_patientregistration" violates check constraint "facility_patientregistration_age_check"
DETAIL:  Failing row contains ().
  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "psycopg/cursor.py", line 737, in execute
    raise ex.with_traceback(None)

IntegrityError: new row for relation "facility_patientregistration" violates check constraint "facility_patientregistration_age_check"
DETAIL:  Failing row contains ().
(28 additional frame(s) were not displayed)
...
  File "care/facility/api/serializers/patient.py", line 306, in create
    patient = super().create(validated_data)
  File "care/facility/models/patient.py", line 488, in save
    super().save(*args, **kwargs)

request body:

{"abha_number": None, "date_declared_positive": None, "date_of_birth": "7665-09-12", "disease_status": "NEGATIVE", "emergency_phone_number": "+919000000666", "is_vaccinated": "false", "number_of_doses": 0, "phone_number": "+919000044343", "srf_id": "", "test_id": ""}
@sainak sainak added the good first issue Good for newcomers label Feb 26, 2024
@rash-27
Copy link
Contributor

rash-27 commented Feb 26, 2024

I would like to work on this issue

@Shahbaz898414
Copy link

I would like to work on this issue

@JohnLu2004
Copy link

@rithviknishad May I work on this GitHub issue?

@rithviknishad
Copy link
Member

Closing as this issue no longer seems to be present.

cc: @sainak

@rithviknishad rithviknishad closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants