WSO2 IoT 3.0.0 and 3.1.0 Device Location Not Showing - wso2

After enrolling a device and going to the Device Location tab I get the following errors and it shows a blank grey box where the map should be. I did not had this with EMM 2.2.0.
Failed to load resource: the server responded with a status of 400 (Bad Request)
https://172.16.21.73:9443/devicemgt/api/invoker/execute/
combined.js:5094 Uncaught TypeError: Cannot read property 'lat' of undefined
at loadLeafletMap (combined.js:5094)
at HTMLLIElement. (combined.js:5120)
at HTMLLIElement.dispatch (jquery-1.11.3.min.js:4)
at HTMLLIElement.r.handle (jquery-1.11.3.min.js:4)

Related

Devices Endpoint - 400 required field error - deviceRegistrationId

Getting the following error when calling the /devices endpoint:
https://smartdevicemanagement.googleapis.com/v1/enterprises/projectId/devices
error code: 400
message: deviceRegistrationId value must be set. This is a required field.
status: INVALID_ARGUMENT
The API is being called from a Crestron home automation processor. The same get devices api call (same projectId and tokens) works fine from Postman or CURL. The documentation makes no reference to this error for the deviceRegistrationId parameter.
Are you using that literal URL or did you replace "projectid" with your actual project id from the developer console?

SAML error with Kubernetes: ‘InResponseToField of the Response doesn’t correspond to sent message’

I am having a recurring issue with shinyproxy (currently 2.5.0 - based on Springboot) hosted within a kubernetes cluster (currenty a single node). I'm using Auth0 with SAML. Traffic goes through a Nginx ingress controller that does TLS termination and has a fairly basic configuration. What I don't understand is that I will get the following error, but only once in a while. If I try to login, I will get the error, but then after that, if I go back to the login page and try to log in again, everything works fine.
o.s.security.saml.log.SAMLDefaultLogger : AuthNResponse;FAILURE;[Auth0 URN];;;org.opensaml.common.SAMLException: InResponseToField of the Response doesn't correspond to sent message a12g399012cidi7i2i3ha3ha4h6e6jc
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.processAuthenticationResponse(WebSSOProfileConsumerImpl.java:175)
at org.springframework.security.saml.SAMLAuthenticationProvider.authenticate(SAMLAuthenticationProvider.java:88)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:199)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:219)
...
This made me think of a cookies problem, however adjusting the shinyproxy server/proxy configuration for cookies did not change anything. Shinyproxy configuration has:
server:
secure-cookies: true
proxy:
same-site-cookie: None
In the browser when I try to log in I get the following error message:
Error
Status code: 200
Message: Error validating SAML message
Stack Trace:
org.springframework.security.authentication.AuthenticationServiceException: Error validating SAML message
...
Anyone has an idea of what I am missing? I would really appreciate it! Thank you!

Caller does not have permission error when using GMail API

I get 500 server error on my django website thats running on Google App Engine. When I look at Google App Engine logs I see the following error:
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission">
When I hard refresh the browser this error goes away. Then after some time it pops back up. Happens on mobile(firefox, safari), laptop (firefox,chrome).
UPDATE:
In Django settings.py I have following code. Its last line generates the error :
pickle_path = 'token.pickle' # path to token.pickle
with open(pickle_path, 'rb') as token:
creds = pickle.load(token)
SERVICE = build('gmail', 'v1', credentials=creds) # ERROR LINE
When I run the django server locally: I get following error:
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission">
When I restart cloud sql connection from my terminal - the error is gone. This never used to happen until a few days ago.
Here's a workaround:
Download the discovery_doc directly from google here
Load the json file (you can name it gmail-api.json)
Build from this json file using build_from_document
Before
from googleapiclient.discovery import build
gmail_creds = get_service_account_creds()
gmail_service = build('gmail', 'v1', credentials=gmail_creds)
After
from googleapiclient.discovery import build_from_document
discovery_doc = load_json('config/gmail-api.json')
gmail_creds = get_service_account_creds()
gmail_service = build_from_document(discovery_doc, credentials=gmail_creds)
It seems that it is now a P0 for Google, so hopefully it will be fixed soon.
https://issuetracker.google.com/issues/160441983
I am also started facing this issue. I have been using Google APIs for more than a year, but suddenly this error HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission. However, couple of times I didn't see this error and API call was successful. I hope this error at the Gmail API server.
Update:
I am able to call Google APIs without any issues. Seems like issue is resolved at google's end.
I am having the same issue with GAM ADV-X. I thought it was an issue on my computer so I tried on 2 different computers and get the same error. It indeed looks like something changed in the Gmail API over the weekend. Will submit a ticket to Google.

Adding Card images throws exception for HTTP and HTTPS resource schemes

Doing some HTTPS json calls in glass with the GDK, so far so good. Tried to set a card to one of the returned https urls using this code:
Uri uri = Uri.parse(url);
card.addImage(uri);
A strange exception occurred, seemingly implying that glass doesn't support HTTPS?
ERROR/AndroidRuntime(14507): FATAL EXCEPTION: main
java.lang.IllegalArgumentException: unsupported image scheme: https
at com.google.android.glass.app.Card.addImage(Card.java:178)
I've tried the same thing with HTTP images, and receive an "unsupported image scheme: http" error.
How am I supposed to load images with the GDK? Is there some API usage I'm missing?
Based on this Stack Overflow response [1] posted Jan. 16, 2014 it seems this is not yet supported and the only supported schemes for the Card builder class are file and android.resource.
There is a feature request [2] for tracking support for web images in the Card builder class.
[1] GoogleGlass : Add image in background : unsupported image scheme: http
[2] https://code.google.com/p/google-glass-api/issues/detail?id=299

App request dialog shows 500 internal server error

I'm using facebook's app app request dialog. It used to work fine...but I get the following error message with infinite loading image.
"NetworkError: 500 Internal Server Error - https://www.facebook.com/dialog/apprequest?access_token=AAACvZBzj3fc0BAETVk8NOCiXqsGq2uXlUC0EUUX1pMXIPWxfIrhbboHQCvBPR0XKasdfFU30ZCpq1C4GqfEZD&api_key=19349352asdf95789&app_id=19349adf27395789&channel=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3fb42d06cf1cf4%26origin%3Dhttp%253A%252F%252Fasdf%252Ff3aaa156051f95%26relation%3Dparent.parent%26transport%3Dpostmessage&channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3b386a6f30f464%26origin%3Dhttp%253A%252F%252Fasdfm%252Ff3aaa156051f95%26relation%3Dparent.parent%26transport%3Dpostmessage&data=%7B%7D&display=iframe&locale=en_US&message=0&next=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df60d0ad8457e2%26origin%3Dhttp%253A%252F%252Fdev-sherlock.thecimarrongroup.com%252Ff3aaa156051f95%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df19043b1779432%26result%3D%2522xxRESULTTOKENxx%2522&sdk=joey"
uncaught exception: Error: Permission denied for <http://static.ak.facebook.com> to get property Proxy.InstallTrigger
Is it an error on facebook end?