Dropbox API v2 error message - dropbox-api

When trying to get a delta result/cursor in the Java API:
client.files.listFolderBuilder(BASE_DIR).recursive(true).start();
I get the following error message:
com.dropbox.core.v2.DbxFiles$ListFolderException: Exception in list_folder: ListFolderError.{".tag":"path","path":{".tag":"other"}}
As far as I can tell it doesn't really say what is wrong. Any suggestions on what to do?

It seems that the reason was that my BASE_DIR ended with a slash. Removing the trailing slash of the path seems to have fixed the problem.

Related

Deploying MoonMail resoruces AwsMarketplaceNotificationsQueuePolicy

I'm getting an invalid parameter error on AwsMarketplaceNotificationsQueuePolicy while creating the stack.
Has anyone run into a similar problem?
I've had the same problem. In my case, the reason was a missing variable - awsMarketplaceUserArn in the _meta/variables/s-variables-<stage>-<region>.json file.

IntelliJ IDEA 15 Play 2.4 reverse routing method parameter "string cannot be applied to java.lang.String"

I use IntelliJ IDEA 15.0.4 to develop a Java Play! 2.4.4 application. Since a few months (I think it was because of an IntelliJ update, but not 100% sure) the following problem occurs:
Whenever I call a reverse route from a controller that takes a String as a parameter, the parameter is displayed as an error with the following message:
methodName (string) in ReverseMyController cannot be applied to (java.lang.String)
Here's a code example:
public Result myAction(String myId) {
// Do something...
// Redirect back to referrer
flash("success", "Action was a success");
if(!myId.isEmpty()) return redirect(controllers.routes.MyController.showItem(myId));
return redirect(controllers.routes.MyController.itemList(1));
}
In this example, the parameter myId passed to the method showItem would be error highlighted, like this.
I already tried fiddling with the Project Structure settings and searched Google, but to no avail. I hope somebody is able to help me with this, my OCD-self would really appreciate having a code base with no error hints again ;)
Accepted answer does not solve the problem that is why I am answering this old question.
I had the same problem with Play 2.5.4 and InteliJ 2016.1.3
I removed the type (String) from route declaration in routes file and InteliJ stopped highlighting it as error.
Change following:
GET /path/:string_arg controllers.MyController.myMethod(string_arg: String)
To
GET /path/:string_arg controllers.MyController.myMethod(string_arg)
and it works fine.
Yes, I meet the same issue as what you said. I think it is a bug of the IDEA 15.0.4, Have you tried to change to the older version before 15.0.4?

Parse FileSaveError Code 130

this is my first ever question so please let me know if I can improve anything in the future.
I am self-learning Swift and Parse. When I tried to save an image to Parse, it gave me the error as can be seen in the picture.
Error message picture
The error message in the picture is as following:
Parse::FileSaveError (Code: 130, Version: 1.11.0)
Can someone please help me with this? I'm not familiar with Swift or Parse so I don't know if they have any certain behaviours.
Many thanks
The definition for the error code you are receiving is:
"Error code indicating that a unique field was given a value that is already taken."
As your code appears to be valid, the issue is most likely in the Parse database itself. Go into Parse core and remove the "Post" class you have created and try running the code again.
It is worth noting that it can help to use print(error) to print the actual error out rather than just a string.

Timthumb.php: internal image not found

I'm getting the following error when using the Timthumb.php script from (http://www.binarymoon.co.uk/projects/timthumb/):
The following error(s) occured:
Could not find the internal image you specified.
Query String : src=http://www.xxxxxxxxx.com/templatename/wp-content/uploads/2010/09/mainimage.jpg
TimThumb version : 2.8.10
I'm not sure whats going on, the internal image does exist, when I try resizing an external image (http://farm3.static.flickr.com/2340/2089504883_863fb11b0a_z.jpg&h=200&w=120), the script works with no issues.
Any thoughts appreciated.
Regards,
Stephen
There is timthumb.php file with problem fixed by someone here:
http://code.google.com/p/timthumb/issues/detail?id=363
and here:
http://code.google.com/p/timthumb/issues/detail?id=315

Error Domain=NSXMLParserErrorDomain Code=64 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 64.)"

What deos the error 64 in NSXMLParserDomain Code=64 mean? I am using an NSXMLParser to parse my XML data. But i am getting the above mentioned error. Can someone please help me on this?
I found it out. The error comes when the XMl contains errors at the start up. U can validate the XMl using w3schools here http://www.w3schools.com/xml/xml_validator.asp[How to validate an XML]1
Its also happens if the XML contains some extra line before the xml tag starts.