Here-API can not find normal.day.yaml - here-api

I have been experimenting with here maps. When I started the project I was minimising the project code and everything was working as expected.
However, in order to debug the project I stopped minimising the code. Now when loading here maps I get a 404 trying to load:
http://localhost:8082/vendor/here-maps//styles/omv/miami/normal.day.yaml
I have looked back at my code that was working, (when I was minimising the code) and the url was:
https://js.api.here.com/v3/3.1.17.2/styles/omv/miami/normal.day.yaml
Why has the url changed when I stopped minimising the code?
How do I correct the issue?
Thanks in advance.

I think it is here bugs? I only get 3 working, and others when request tile.png get error 404
var here_apiKey = '....'
var appId = 'xxx';
var appCode = '......';
var urlTpl =
'https://{1-4}.{base}.maps.cit.api.here.com' +
'/{type}/2.1/maptile/newest/{scheme}/{z}/{x}/{y}/256/png' +
'?app_id={app_id}&app_code={app_code}' +
'&apiKey={api_key}';
I can get these working :
satellite.day
hybrid.day
terrain.day
But when request tile.png get error 404 on these:
pedestrian.day
normal.day.transit
normal.day

Related

vue3 issue with usersnap

I had quasar1/vue2and usersnap was included in the project. Everything worked well. I upgraded the project on the quasar2/vue3 and user snap works also.
The problem is when I have a syntax error in my code I get vue warning what is ok(ex [Vue warn]: Property "qq" was accessed during render but is not defined on instance. ). At that moment I start getting a bunch of errors "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead" and my browser is crashed. When I remove usersnap snippet I just get a syntax error without "Avoid app logic that relies..."
I followed usersnap instructions and added snippet:
window.onUsersnapCXLoad = function(api) {
api.init({
button: {
position: "bottomRight" ,
isHidden: false
}
});
}
var script = document.createElement('script');
script.defer = 1;
script.src = 'https://widget.usersnap.com/load/xxxxxxxxxxxx?onload=onUsersnapCXLoad';
document.getElementsByTagName('head')[0].appendChild(script);
I really do not know what is the issue and why I am getting these errors. Can someone help me?
Thanks in advance

MS Lightswitch error "Resource not found for the segment" Entity with missing letter

In Microsoft LightSwitch I created an application that works on my desktop and sandbox, but when deploying to production I get "Resource not found for the segment 'lients' ", but it's supposed to be 'Clients' whenever it is updating or deleting.
Any ideas on why this is happening?
Just putting it out here for anyone that needs it. The issue which can be found here, was that there is a bug in the code. When the site is changed from HTTP to HTTPS outside of LightSwitch, it retains the original URL and your entity name is reduced by one character.
The workaround is to go to file 'Scripts\msls-2.0.0.js' at line 7026 which looks like this:
request.requestUri = metadata.uri.substr(
dataServiceDetails._serviceUri.length + 1);
and change this line to:
var protocol = /^(https|http)/i;
request.requestUri = metadata.uri.replace(protocol,
'').substr(dataServiceDetails._serviceUri.replace(protocol, '').length
+ 1);

JClouds not able to get the list of images

I have used the code below:
Iterable<Module> modules = ImmutableSet.<Module> of(
new SshjSshClientModule());
ContextBuilder builder = ContextBuilder.newBuilder(provider).endpoint(endpoint)
.credentials(identity, credential)
.modules(modules);
System.out.printf(">> initializing %s%n", builder.getApiMetadata());
ComputeService compute = builder.buildView(ComputeServiceContext.class).getComputeService();
System.out.println(compute1.listImages());
but I am getting the following error message.........
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 787
at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:181)
at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.readAndBuild(NullFilteringTypeAdapterFactories.java:92)
The code was working... before...
You've definitely hit a bug somewhere between the version of jclouds you're using and whatever version of whatever cloud you're using. We'll need more information to fix this. Please go through the instruction on how to Report a Bug to Apache jclouds.

OpenSocial API stopped working in Google Calendar Gadget

I found out that opensocial API we were using in Calendar Sidebar Gadget stopped working. It was still working correctly on Friday. We were using opensocial to store and get some key-value data, and today we are getting error code: badRequest (with no error message) everytime we are trying to read anything.
This an example of the code we are using:
var idspec = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "SELF" });
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(idspec, "mydata"), "get_data");
req.send(function(data){console.log(data)});
And this is the response we are getting from google:
errorMessage_: undefined
globalError_: true
responseItems_: Object
get_data: opensocial.ResponseItem
data_: null
errorCode_: "badRequest"
errorMessage_: undefined
The code is quite simillar to what is described here: http://docs.opensocial.org/display/OSREF/App+Data
Does anyone have some similar problem, or know how to fix it? We are using it on our production system which is down since morning. any help would be appreciated.
The API has been deprecated. For solving this i changed the implementation for importing Google Contacts with Google oAuth 2.0 and its working fine with it.
https://developers.google.com/igoogle/docs/opensocial_rest_rpc ( deprecated one ).
For using Google oAuth 2.0 visit below link :-
https://developers.google.com/accounts/docs/OAuth2Login

as3 to .net, not receiving Event.COMPLETE callback

I created an image uploader for an app I am working on. I first used php for the server side script, and everything worked fine. I found out afterwards I had to use .net, so I created new serverside scripts. The problem I am having is that my event.COMPLETE listener is never firing. I can receive data back using a DATAEVENT listener, but then it stops at this error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
Here is how I am sending my file.
var fileRefReq:URLRequest = new URLRequest(FILE_UPLOAD_TEMP);
var fileReqVars:URLVariables = new URLVariables();
fileReqVars.subdir = "Temp";
fileRefReq.data = fileReqVars;
fileRefReq.method = URLRequestMethod.POST;
fileRef.upload(fileRefReq);
The file definitely gets uploaded to the first TEMP directory, but then it breaks with the above error.
Has anyone else had a similar problem or point me in the right direction for solving this?
This is an error produced by Flash. The most common causes are:
It could be a 404 Error you are getting somewhere in the Flash.
This error can occur if you close the browser while it is loading something.
By default, the calling SWF file and the URL you load must be in the same domain. For example, a SWF file at www.adobe.com can load data only from sources that are also at www.adobe.com. To load data from a different domain, place a URL policy file on the server hosting the data.
Number 3 is important because a common user problem with Flash is security issues - so it is just something to rule out. Most likely not the cause here.
I would test for these 3 causes and read over the URLRequest: http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequest.html
After some additional thought I think it is timing out but that is just a theory. Add an event listener like so:
urlLoader.addEventListener("httpResponseStatus", function(event:HTTPStatusEvent):void
to see what is actually happening.
You have to handle the event such as:
// add the event listener
urlLoader.addEventListener( IOErrorEvent.IO_ERROR, onErrorHandler );
// handle the error event like this:
private function onErrorHandler( e: IOErrorEvent ): void {
trace( "An io error occurred." );
}
Hope that helps

Resources