Ticket Created
over 5 years ago

WERETECH-8398

makeWebRequest -402 response differs between models (e.g. Fenix 5s vs. Fenix 6 Pro)

I am making a JSON call to a REST service using makeWebRequest. In the simulator, using a Fenix 5s or Fenix 6s, the call returns without issues. However, using a few other devices, the call is returning a -402 error (NETWORK_RESPONSE_TOO_LARGE). What can explain why the 5s and 6s are handling the response with no issues yet the 6 Pro thinks the network response is too large?

In the simulator, after the makeWebRequest call, peak memory on the 6 Pro is 61.5 kb / 1275kb.

On the fenix 5s, where I don't receive the message, peak memory is 81.8 kb / 123.9 kb after the call returns.

Thanks for the help!

More details:

This is happening in the simulator. Since I don't have one of the failing devices (e.g. Fenix 6 Pro), I'm unable to test it outside of the simulator. However, the data being pulled is exactly the same for all of the tested devices in the simulator. Some succeed (i.e. Fenix 5s, Fenix 6s, Vivoactive 3); others fail (i.e. Fenix 6 Pro, etc).

Confimed this behavior only happens in the simulator and not the physical watch.

Former Member
Former Member