-
Notifications
You must be signed in to change notification settings - Fork 19
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
TypeError [ERR_INVALID_ARG_TYPE] at logRequest(), app.js #35
Comments
Well the true error is actually that the device you specified at |
I mean What I wanted to say is, when network-related error happens, some of that that does not contains |
Related PR #36 issued. |
Sorry, there are no need to add |
Problem:
./meross
throwsTypeError [ERR_INVALID_ARG_TYPE]
and cannot see what the real error is,when
./meross
with-v
option and situation that occuring some network error, such as reserving inappropriate IP address to--gateway
option.Log:
10.10.10.155
is not meaningful IP address example which not exist Meross device.My environment:
Hardware : Raspberry Pi 1 (Yes, it's old)
Cause?:
In
Meross/lib/api.js
Line 62 in 7a9ea92
,
logRequest()
fails if argumentrequest
does not containsurl
.My workaround:
In
Meross/lib/api.js
Line 98 in 7a9ea92
,Fix
} else if (error.request) {
to
} else if (error.request && error.request.url) {
Log with applying workaround:
Shows error normally (without TypeError).
The text was updated successfully, but these errors were encountered: