Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
This is more like a bug report than a question. I observed that the trending venues endpoint is returning this error:
{
meta: {
code: 400,
errorType: "param_error",
errorDetail: "Value trending is invalid for venue id",
requestId: "56869f2c498ebe6aa0f8428d"
},
notifications: [{
type: "notificationTray",
item: {
unreadCount: 1
}
}],
response: { }
}
It seems like the keyword trending is being treated like an ID. You can easily verify this using the API Explorer.
Is there someone else experiencing this behavior or I am just doing something wrong?
It looks to be working now! Likely a minor bug that was fixed.
https://developer.foursquare.com/docs/explore#req=venues%2Ftrending%3Fll%3D40.7%2C-74
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 months ago.
Improve this question
I am trying to run a simple hello world program on the Rust Playground:
fn main() {
println!("hello");
}
But all I get is an error:
Response was not JSON: SyntaxError: The string did not match the expected pattern.
What is going on?
This appears to be the symptomatic message displayed if the server-side of the Rust Playground is unresponsive, likely due to either updates or overloaded usage. There isn't much you can do beyond waiting for it to become responsive.
There is a mirror site here (by the playground's primary developer).
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
We are sending out the following query:
{u'parentReference': {u'path': u'/drive/root:/Main'}, u'name': u'BusinessDailyTemplate.xlsb'}
To the endpoint
[…path to the file…]:/copy
As follows
requests.post('[…path to the file…]BusinessDailyTemplate.xlsb:/copy',
json={'parentReference': {'path': '/drive/root:/Main'}, 'name': 'BusinessDailyTemplate.xlsb'},
headers={'Authorization': 'Bearer [...long authorisation token...]'})
As of this Saturday, all similar requests get the following error:
{
"error": {
"code": "-1, Microsoft.SharePoint.Client.UnknownError",
"message": "Unknown Error",
"innerError": {
"request-id": "b82e6e21-b75c-4e18-a6fe-5d6a8e4ec99e",
"date": "2017-11-06T19:11:50"
}
}
}
There have been no code changes since Thursday, and the queries worked well on Thursday as well as Friday. They suddenly stopped working on Saturday. Therefore, we are pretty sure the problem isn’t with the code.
We are completely stuck after a few days of testing and brainstorming. Could you help us out?
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
def score = 0;
// terms: list of tokens
for(term in terms) {
q_term_freq = terms.countBy { it }[term]; // for frequency of each term in terms
term_freq = _index[field][term].tf();
doc_freq = _index[field][term].df();
score += term_freq * doc_freq * q_term_freq;
};
score;
When I run this I get an error `GroovyScriptExecutionException[MissingPropertyException[No such property: terms\u200b for class: Script86.
What is going wrong? AFAIK countBy is valid function.
\u200b is unicode for Zero Width Space.
Rewrite the script or make sure there is no unicode character present with terms.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
Here is my program
function say(word) {
console.log(word);
}
function execute(someFunction, value) {
someFunction(value);
}
execute(say, "Hello");
How the value is getting printed through someFunction(value);
Probably, you meant execute to be like this:
function execute(someFunction, value) {
someFunction(value);
}
As it is, your code just calls execute recursively, forever. (Well, until the stack overflows.)
word is not reserved.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
class Foo {
def getSomeFood(def param){
//do some stuff
}
When you mock this in a spec
def foo=Mock()
and make the method return something
foo.getSomeFood(_) >> "apple"
if this class is being used inside another class like
foo.getSomeFood("")
it returns null rather than "apple"
It could be a bug in spock.... Does anybody have any idea why it doesn't return any data?