-
Notifications
You must be signed in to change notification settings - Fork 56
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
Possible cause of the empty String
error?
#130
Comments
It is also worth to mention that recycling power on the device and the printer doesn't help. Only after uninstalling the app and installing it again, we can establish connection with the printer. |
@ncpa0cpl I used the sample for getStatus to verify the issue, but I could not reproduce the same problem.
If you have any additional information, or questions, or need any assistance, please feel free to let us know. My testing environment: Printer Model Names: MCP31CB react-native info:
|
@PawelLampliapps At this point, I could not determine whether this issue was directly related to the problem. I appreciate your cooperation. |
Description
At my work we've encountered an issue like this: when calling the
StarPrinter.getStatus()
we'd get anempty String
exception on one of the production devices, it happens only on one of them, and started happening after a network outage. Looking through the stack trace it appears that the SDK parses a string into a number, but the string happens to be empty hence the error. Though we can not think of what could be causing this, in the first place what numbers are there to be parsed in a getStatus() call?Could someone shed some light on what could possible be the cause of this?
Your device where the bug occurs
android 12
Your printer
Star mC-Print3
Ethernet Lan
SDK Version: 1.6.0
Additional context
Here's the stack trace of the error that we are getting:
The text was updated successfully, but these errors were encountered: