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

geojson interpreted inconsistently as string or dict by FastAPI in burn-backend? #58

Open
github-actions bot opened this issue Dec 5, 2024 · 0 comments
Labels
smelly Working but hacky, hardcoded, and/or confusing

Comments

@github-actions
Copy link

github-actions bot commented Dec 5, 2024

Likely caused by a frontend issue with the request body - need to investigate

# TODO(!smelly): geojson interpreted inconsistently as string or dict by FastAPI in burn-backend?
# Issue URL: https://github.com/SchmidtDSE/burn-severity-mapping-poc/issues/58
# Likely caused by a frontend issue with the request body - need to investigate

    """
    sentry_sdk.set_context("fire-event", {"request": body})

    # TODO(!smelly): geojson interpreted inconsistently as string or dict by FastAPI in burn-backend?
    # Issue URL: https://github.com/SchmidtDSE/burn-severity-mapping-poc/issues/58
    # Likely caused by a frontend issue with the request body - need to investigate

    # geojson_seed_points = json.loads(body.geojson)
    user_edits_geojson = body.geojson

    fire_event_name = body.fire_event_name
    affiliation = body.affiliation

    return await main(
        user_edits_geojson,
        fire_event_name,
        affiliation,
        logger,
@github-actions github-actions bot added the smelly Working but hacky, hardcoded, and/or confusing label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smelly Working but hacky, hardcoded, and/or confusing
Projects
None yet
Development

No branches or pull requests

0 participants