Skip to content

Problem with Invalid field value for field - system language and formatting of lat/lon #110

@wkulesza

Description

@wkulesza

Hi,
great work on the docker. We succesfully run it and it will be powering our standard OBA deployments.
We noticed a strange behaviour linked to differences in how OBA ios treats formatting of lat/lon included in endpoints produced by oba docker.
When ios app (setup with any other language than english - i.e. polish, german) sends requests:
api/where/stops-for-location.json?lon=16.903518751776243&latSpan=0.00919621834986728&lat=52.36105449372918&lonSpan=0.009276089134189647&version=2&app_ver=24.3.1&key=web&app_uid=215BB071-58FF-41C7-AC51-A184CBB7B4FA

it's getting an error:
obraz

When we replace the . with , for lat/lon/latspan/lonspan, it works again:
api/where/stops-for-location.json?lon=16,903518751776243&latSpan=0,00919621834986728&lat=52,36105449372918&lonSpan=0,009276089134189647&version=2&app_ver=24.3.1&key=web&app_uid=215BB071-58FF-41C7-AC51-A184CBB7B4FA

To debug the error in ios, try opening any OBA endpoint in xcode and start emulator (dont use english language).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions