Skip to content
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

Get Error message when running in Win10 #3

Open
MartinKleindl opened this issue Sep 13, 2016 · 4 comments
Open

Get Error message when running in Win10 #3

MartinKleindl opened this issue Sep 13, 2016 · 4 comments

Comments

@MartinKleindl
Copy link

Hi,
thanks for your great work, hope you can help me to fix this issue.

When running in Win10 it seems to read the status but is not able to switch from 3G to other modes.
Please see below log.

Any idea?

Thanks for your help,
Martin

2016-09-13 09:51:12.0605 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Program | Starting
2016-09-13 09:51:12.1074 | MARTIN | 27736 | AlwaysLte | Debug | AlwaysLte.Program | Seeking interval is 30 seconds in config
2016-09-13 09:51:12.1260 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Program | Started
2016-09-13 09:51:12.8093 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Router.RouterManager | Getting PublicKeys
2016-09-13 09:51:12.8471 | MARTIN | 27736 | AlwaysLte | Error | AlwaysLte.Program | Unexpected error inside execution: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei AlwaysLte.Router.RouterManager.GetPublicKeys() in C:\projects\pers\always-lte\AlwaysLte\Router\RouterManager.cs:Zeile 237.
bei AlwaysLte.Router.RouterManager.LoadCookiesIfNeeded(Boolean force) in C:\projects\pers\always-lte\AlwaysLte\Router\RouterManager.cs:Zeile 132.
bei AlwaysLte.Router.RouterManager.GetConnectionType() in C:\projects\pers\always-lte\AlwaysLte\Router\RouterManager.cs:Zeile 98.
bei AlwaysLte.Program.MonitorHealth(RouterManager rm, Boolean isInitialized, ILogger logger) in C:\projects\pers\always-lte\AlwaysLte\Program.cs:Zeile 124.
bei AlwaysLte.Program.<>c__DisplayClass2_0.

b__0() in C:\projects\pers\always-lte\AlwaysLte\Program.cs:Zeile 86.
2016-09-13 09:51:13.3944 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Program | Current connection type is LTE. Monitoring...
2016-09-13 09:52:15.7320 | MARTIN | 27736 | AlwaysLte | Warn | AlwaysLte.Router.RouterManager | Probably router rebooted or Session Lost. Trying to load home page to get cookies again...
2016-09-13 09:52:46.9801 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Program | Connection dropped to 3G. Switching.
2016-09-13 09:52:46.9957 | MARTIN | 27736 | AlwaysLte | Info | AlwaysLte.Router.RouterManager | Getting PublicKeys
2016-09-13 09:52:46.9957 | MARTIN | 27736 | AlwaysLte | Error | AlwaysLte.Program | Unexpected error inside execution: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei AlwaysLte.Router.RouterManager.GetPublicKeys() in C:\projects\pers\always-lte\AlwaysLte\Router\RouterManager.cs:Zeile 237.
bei AlwaysLte.Router.RouterManager.Login() in C:\projects\pers\always-lte\AlwaysLte\Router\RouterManager.cs:Zeile 138.
bei AlwaysLte.Program.MonitorHealth(RouterManager rm, Boolean isInitialized, ILogger logger) in C:\projects\pers\always-lte\AlwaysLte\Program.cs:Zeile 134.
bei AlwaysLte.Program.<>c__DisplayClass2_0.b__0() in C:\projects\pers\always-lte\AlwaysLte\Program.cs:Zeile 86.

@kotylo
Copy link
Owner

kotylo commented Sep 14, 2016

It fails when trying to load the encryption public keys. Try to open the same URL in browser to see whether you have any errors.
{baseUrl} + /api/webserver/publickey
Response should be XML with and tags.

Maybe your router has some different response or base URL is not correct?

@MartinKleindl
Copy link
Author

If I use this in the Windows Edge browser (or Chrome) it returns a 6 digit
number.

In the config file I have:

In the browser I used:
http://10.0.0.137/api/webserver/publickey

2016-09-14 9:29 GMT+02:00 kotylo [email protected]:

It fails when trying to load the encryption public keys. Try to open the
same URL in browser to see whether you have any errors.
{baseUrl} + /api/webserver/publickey
Response should be XML with and tags.

Maybe your router has some different response or base URL is not correct?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVJAvhgzEUpAwByOZNNC1czpeoAsW8sWks5qp6JFgaJpZM4J7aHh
.

@kotylo
Copy link
Owner

kotylo commented Sep 14, 2016

Seems like it's an error code. If you view source of this page, you'll see something like:

<error>
<code>125002</code>
<message></message>
</error>

That happened to me when I opened the public keys page without opening homepage. As soon as I did, I've got proper response. Hmmm. But the application already does that on line 131 of RouterManager. So probably some other response is generated. Try opening homepage first in browser and try the public keys page again.

@MartinKleindl
Copy link
Author

I opened the homepage of the router http://10.0.0.137/html/home.html and
also logged on.

But the I still get the error when calling http://10.0.0.137/api/
webserver/publickey in a new tab or in the same tab.

The error codes are different in Edge (1000002) and Chrome (125002).

2016-09-14 13:31 GMT+02:00 kotylo [email protected]:

Seems like it's an error code. If you view source of this page, you'll see
something like:

125002

That happened to me when I opened the public keys page without opening
homepage. As soon as I did, I've got proper response. Hmmm. But the
application already does that on line 131 of RouterManager. So probably
some other response is generated. Try opening homepage first in browser and
try the public keys page again.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVJAvgEhHZjF04dud0eJWKwR4XBTMtENks5qp9smgaJpZM4J7aHh
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants