Skip to content

500 error when workplace type is missing in job description #445

@LuisaG

Description

@LuisaG

Describe the bug
A clear and concise description of what the bug is.

When submitting a job description that has an invalid or missing workplace type (e.g. 'N/A' instead of 'Remote', 'On-site', etc.), clicking the Improve button results in a 500 error. This shouldn't crash the app — the field should either be optional or safely default to 'Not Specified'.

If I manually add the workplace type in the job description example from above it works.

To Reproduce
Steps to reproduce the behavior:

  1. Add a job description with 'N/A' or a missing work arrangement.

  2. Click the Improve button.

  3. Observe the 500 error.

Expected behavior

The app should validate or gracefully handle unexpected workplace type values. A missing or invalid value shouldn’t break functionality.

Screenshots
If applicable, add screenshots to help explain your problem.

Image Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
The input is expected to be one of the following: 'Fully Remote', 'Hybrid', 'On-site', 'Remote', 'Not Specified', or 'Multiple Locations', but 'N/A' is being passed and isn’t supported. The system should sanitize or default this input instead of throwing a 500.

Edit: if I add the full link it works, as the location is found up top of the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions