We have a plugin that works with the ricoh theta z1. it was working fine when we were testing, then suddenly we realized that sometimes it does not work as expected. Upon checking further we found that the api we were using to boot the plugin was failing. Instead of calling the api directly from our ios app, we tried another app named api tester that just lets you test api calls, it failed there as well. After a few tries, it started working from our ios app, without us making any changes. we realized there is nothing wrong with our ios app, it is the camera api to boot the plugin that sometimes works, sometimes doesn’t as it behaved the same way even with the api tester app. Sometimes the error we get is
"Error: FormatException: Unexpected end of input (at character 1)"
Sometimes we get
Response status code: 400
While sometimes it works, it boots the plugin. These all three different responses are with the same input, we just kept trying the same api over and over without making any changes and we get a variety of these responses randomly for the same input. Any idea what might be happening?
Thank you in advance @craig
Apologies for the delayed response, we eventually figured out it was because some api stop working while the plugin is active unless those api are handled from the plugin as well. That was the reason behind this, if the plugin is active, some native camera api stop working if we had not explicitly handled them from the plugin, but the api from the plugin worked fine.
Are you opening and closing the internal camera application (the app from ricoh that runs inside the camera to take the picture) per the documentation?