techmatters / terraso-mobile-client

A React Native project for Terraso’s LandPKS mobile application.
https://landpks.terraso.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

Dev console error: "JSON Parse error: Unexpected character" on map search with lat, long #1406

Open knipec opened 4 months ago

knipec commented 4 months ago

App Version

dev build

Account

No response

Platforms

Description

In developer mode,

Steps to Reproduce

  1. On the home page map's search bar: Type a lat, long like "2, 7" OR
  2. On the home page, click anywhere on the map

Expected behavior

No error

Actual behavior

On every number typed after the comma, we get the same error: [SyntaxError: JSON Parse error: Unexpected character: I]

Additional context

image

paulschreiber commented 4 months ago

@knipec what does the JSON look like in this case?

paulschreiber commented 2 months ago

Here's a stack trace:

SyntaxError: JSON Parse error: Unexpected character: I
    at parse (native)
    at tryCallOne (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:48394:16)
    at anonymous (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:48475:27)
    at apply (native)
    at anonymous (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:49715:26)
    at _callTimer (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:49594:17)
    at _callReactNativeMicrotasksPass (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:49639:17)
    at callReactNativeMicrotasks (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:49845:44)
    at __callReactNativeMicrotasks (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:8425:48)
    at anonymous (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:8198:45)
    at __guard (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:8397:15)
    at flushedQueue (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:8197:21)
    at invokeCallbackAndReturnFlushedQueue (http://192.168.7.156:8081/index.bundle//&platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:8191:33)