We are developing on Google App Engine. Endpoints developed are working fine locally and in production. Generating client libs using the endpoints.sh works for most of endpoints.
There is only one endpoint that it is not working for some reason. It keeps returning the following:
Error: 500 Internal Server Error
{"error": {"message": "Internal Server Error", "code": 500, "errors": [{"message": "unknown exception", "debug_info": "string index out of range"}]}}
As you can see the error message does not provide much additional information so we've tried running the script in debug mode with no much luck either.
We are developing on OS X, Java 1.7.0_25 and Google App Engine 1.9.40.
Any help appreciated.
The issue is as follow. I had an enum for country defined as the country name and its abbreviation. There is one for UNKNOWN and had no abbreviation (its value was actually set to ""). After changing this to "UNKNOWN" it started to work and generate client lib.
Full details on:
https://code.google.com/p/googleappengine/issues/detail?id=13337
Related
I'm trying to setup a dev environment for developing with FCM and I'm getting this error.
I'm using the configuration of out-of-box and it is been loaded properly (I've debugged).
I'm working with java 8 and spring 2.2.12 and firebase-admin 7.1.0.
com.google.api.client.http.HttpResponseException: 403 Forbidden
POST https://fcm.googleapis.com/v1/projects/projectt-82004/messages:send
{
"error": {
"code": 403,
"message": "SenderId mismatch",
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.firebase.fcm.v1.FcmError",
"errorCode": "SENDER_ID_MISMATCH"
}
]
}
}
What I've tried so far
Create a new project and a new key
There was an old documented error where the services were not activated by default. I've checked the services and all of them are active.
Also, the user appears to have enough privileges.
I've also updated the library to the latest version (it also happened with the previous version)
Am I missing something here?
UPDATE
Same code, later on the following day, without any changes to the code, it started working. So the conclusion was that there was some problem with the service itself.
I have successfully been able to deploy and run this demo for using conversation-with-discovery.
I have spent the last 2 weeks trying to run the application with my own data, and provide a query on the Chat App localhost that I know should provide results from my data from Watson Discovery, I get the following:
http://localhost:9081/dist/index.html: "Service seems to be down.Please try again
after sometime or Please check the logs." "No response from Watson"
On Terminal Command Line: "10:40:03.549 [Default Executor-thread-79]
INFO com.ibm.watson.apis.conversation_with_discovery.discovery.DiscoveryQuery - Query: searchText:CO2 Absorption
10:40:04.360 [Default Executor-thread-79]
INFO com.ibm.watson.apis.conversation_with_discovery.discovery.DiscoveryClient - Creating Discovery Payload
10:40:04.361 [Default Executor-thread-79]
ERROR com.ibm.watson.apis.conversation_with_discovery.rest.ProxyResource - Exception on Query:null"
Now if I run a query on the Local Chat App that doesn't make sense to Watson Discovery I get the following:
http://localhost:9081/dist/index.html: "Sorry I haven't learned answers to questions like this" " "log_messages": [],
"CEPayload": [
{
"text": "empty",
"textSnippet": "empty",
"confidence": "0.0",
"sourceUrl": "empty",
"title": "No results found"
}
]
},
"input": {
"text": "CO#""
On Terminal Command Line: "10:52:39.614 [Default Executor-thread-228]
INFO com.ibm.watson.apis.conversation_with_discovery.discovery.DiscoveryQuery - Query: searchText:CO#
10:52:40.385 [Default Executor-thread-228]
INFO com.ibm.watson.apis.conversation_with_discovery.discovery.DiscoveryClient - Creating Discovery Payload"
My intuition tells me that something is not right when Discovery API tries to send back a response to the Chat App via the Java application I am using but when I ask something that Discovery cannot answer I get "empty" fields for my Payload, as shown above.
Based on what I have found regarding this type of set up tried the following:
I changed the fields on the Java Application to match with what is shown on discovery as fields on the data schema and on the API
I modified the manifest.yml file: buildpack: liberty-for-java_v3_7-20170118-2046" and "env: JVM: openjdk as suggested on a few forums
I downloaded java-sdk-java-sdk-4.0.0 but am not sure how to update my current Java SDK. Not sure if it's the actual problem so haven't deeply approached this route.
I am running on macOS Sierra version 10.12.6. Perhaps something is incompatible with my OS?
I just need some guidance before I continue down a rabbit hole that holds no solution. Could it be the Java Application or is this an internal Java system issue on my laptop? I have searched forums and seen both situations.
My source system provides SOAP url (hosted in IIS server) which we use it to get data, but lately we cannot pull data where it fails with nothing more than this msg in my side
"org.apache.axiom.om.OMException: SOAP message MUST NOT contain a Document Type Declaration(DTD)"
When the issue was debugged on the other side we got the following error
DEBUG httpclient.333.content [main] << " [0x9]IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred."
The team that developed this service too cannot provide us anything useful info like where their app fails or any other useful info. A bizzare scenario occurs every now and then, wherein a data pull is successful in a test server but fails in prod server even when both of them point to the same SOAP url.
Everything worked fine as long as they hosted it in Apache tomcat, things worsened after they moved to IIS.
I want to know what settings to be looked at to resolve the issue.
While deploying to app engine, I got this error message:
400 Bad Request
Creating an index failed for entity_type:
"GeoLocationStat"ancestor: falseProperty { name: "ZoomLevel"}
Property { name: "GeoPt" mode: 3}:
Permission denied for creating a search index
Does anyone have any idea?
Well, apparently GeoPt and ZoomLevel datatypes were NOT the cause.
The root cause of this error message is Eclipse is unable to update datastore-indexes-auto.xml in WEB-INF\appengine-generated folder.
I delete the file and the deployment proceed just fine. :)
According to issue11963#c14 on the app engine issue tracker:
Geo-spatial queries are a new feature currently under development, and
expected to launch as Alpha sometime soon. When it does launch, it
will be for a limited group of apps; during Alpha, only those apps
will have "permission" to use it, which is why you're seeing this
confusing error message now...the SDK development server does
currently support the feature. So it works locally, but not in
production.
I'm working on the Blackberry Eclipse plugin but can't get this sample to work :
Code sample: Parsing a JSON data structure
It doesn't go anywhere after response = bsd.sendReceive();
The Simulator has internet access in the browser, and I also checked the "Launch Mobile Data System Connection Service (MDS-CS) with simulator." (odd that nothing shows up in fiddler, but hey)
The URI does seem to timeout quite often so I changed it to point to a file in my dropbox, but that didn't change anything.
Anyone have any success running this sample ?
added ";deviceside=true" to uri