Uncaught Error: Missing query for request id: reqId:0 - google-visualization

Trying to push data to google Charts Api from PHP using the example at:
https://code.google.com/apis/ajax/playground/?type=visualization&hl=es#chart_editor
My code returns:
google.visualization.Query.setResponse({"version":"0.6","status":"ok","reqId":"reqId:0","table":{"cols":[{"id":"col_Fecha","label":"Fecha","pattern":"","type":"string"},{"id":"col_Importe","label":"Importe","pattern":"#0.###############","type":"number"}],"rows":[{"c":[{"v":"2014-02-10 13:47:47"},{"v":"885.79"}]}]}});
Which is valid JSON format.
Still I get: 'Uncaught Error: Missing query for request id: reqId:0'
And I just can't find the problem. Any help?

As David A and asgallant pointed out in the comments my request was erroneous an should have been "reqId":"0" , not "reqId":"reqId:0"

Related

How can i filter facebook leads from marketing api by creation_date?

i am testing this request in graph explorer and if the json object is not valid in "filtering" i will get according error. But when its correct like i assume i have below i get unknown error!? What am i mssing?
<Ad_ID>/leads?filtering[0]={field:'created_time',operator:'EQUAL', value:'2018-04-18 00:00:00'}&fields=ad_name,campaign_name,adset_name,created_time&limit=1000
ERROR:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1,
"fbtrace_id": "HJWkrFCRE1K"
}
}
What i am trying to do is actually the following but unfortunatly the "time_range" portion of the url is completely ignored:
<Ad_ID>/leads?time_range={'since':2018-04-18,'until':2018-04-18}&fields=ad_name,campaign_name,adset_name,created_time&limit=1000
I can see this question was posted already 3 years ago, but it still didn't get any right answer.
Since then the Facebook Leads API docs were improved a lot.
According to the mentioned docs, the correct filtering looks like this:
<FORM_ID>/leads?fields=created_time,field_data,form_id,id&filtering=[{"field":"time_created","operator":"GREATER_THAN","value":"1616731200"},{"field":"time_created","operator":"LESS_THAN","value":"1616817600"}]
Only LESS_THAN, GREATER_THAN, and GREATER_THAN_OR_EQUAL operators are supported.
Looks like you don't have an access token in your query

How to read table data where the Request URL has given?

I have a feature file which contains the following content.
Feature: Webservices Testing
I want to use this template for my feature file
Background:
* url 'http://101.154.221.189:9101/search/InvGuidedSearchService?wsdl'
#Scenario1
Scenario: Get Available Units
Given request 'testdata'
When method post
Then status 200
* print 'Response of GetAvailableUnits:', response
#Scenario2
Scenario: GetMember Preferences
* url 'http://101.231.121.211:9211/extn/scep/MemberPreferencesService'
Given request 'testdata'
When method post
Then status 200
* print 'Response of GetMemberPreferences:', response
* table testdata
|file_name|
|'getAvailableUnitDetail.xml'|
|'getMemberPreferences.json'|
In order to read file request file from table data, what is the code procedure I need to use? For the above code, I'm getting the error message and it's not working.
What should be the correction required in this code?
Thanks
Start by understanding how you should read a data table in cucumber. I wrote a blog post outlining that a while ago. Read it and implement the example. It should give you enough knowledge to solve your current problem.

Sharepoint 2013 Online - Newsfeed error

Adding a news feed from Mysite of Sharepoint 2013 Online gives this error
"
The following error is returned: The request is invalid. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException. Internal error code: 14. Contact your system administrator for assistance in solving this problem.
This can not be sent, because there are some problems have occurred."
Adding a newsfeed from home page works though.
In my case i had jquery library refrence in the page. I created a new jquery object using noConflict() and used that instead of the default $. For some reasoms $ caused some issues and i was unable to post in the news feed.
var jQ = jQuery.noConflict();
jQ(document).ready(function(){
//demo code
});
Below is the error message that used to get.
The request is invalid. Internal type name : Microsoft.Office.Server.Microfeed.MicrofeedException . Internal error code : 14+sharepoint
Another reason was i have multiple references of jquery library in my page which was the reason.
Hope this might be useful to someone.
Internal error code 14 says "Invalid_Content_Null_Or_Empty". So it might be possible that the content you are updating is invalid. So you need to check that.

django + confusion with the ORM

I am getting a strange error despite following the documentation. I have the following model:
class UserToken(models.Model):
token = models.CharField(max_length=100)
user = models.ForeignKey(User)
Whenever I do UserToken.objects.get(token=tokenValue) (tokenValue is the value I am looking for) locally for MySQL, everything works. I get the value as expected. But when I do the same on my MySQL instance in Amazon RDS, I keep getting the following error:
ERROR Unknown exception: UserToken matching query does not exist.
Is there anything I am missing here? Why would a statement like this not work in RDS?
[EDIT]
Just to clarify, the token values do indeed exist. I checked the database just to make sure. Also I tried the following:
ut = UserToken.objects.raw("select * from user_token") (just to test..there was only one entry in the table) and i'm getting the following error: Unknown exception: 'RawQuerySet' object has no attribute 'token'. Is there a reason for this? The token field does exist.
I'm really not sure how this is different...but previously I was doing request.raw_post_data to get the json message that the user was sending me. I changed that to request.POST and request.body and somehow that fixed the issue. Just in case anybody else faces this hard-to-debug issue!

Mystery... Faked Referrer Generates 500 Instead of 404 Error

I hope someone can provide some clues.I have begun receiving
regular 500 errors from a page that does not exist. Without providing
the entire error page, here are the essentials:
[Django] ERROR (EXTERNAL IP): Internal Server Error: /sample/
path/calendar.pl
IOError: request data read error
'HTTP_REFERER': 'http://mydomain.org/calendar.pl',
'PATH_INFO': u'/sample/path/calendar.pl',
If I visit the page http://mydomain.org/calendar.pl, I get a 404
error, but the error message referencing the same page generates an
internal server (500) error.
QUESTIONS:
Should I be concerned?
Why do I get a 500 error instead of 404 error?
Any suggestions for troubleshooting?
This has been driving me nuts for a few days. Any help is very
appreciated.
Thanks
Are you trying to change one of the attributes of request, which are read-only (or at least, should be considered to be read-only"). Are you trying to change request.META['HTTP_REFERER']?
This is still an open bug which might be resolved in v. 1.6.
In the meantime, though, you can use this workaround in your settings.py file.