What happens with saveAll in Parse.com if it fails? - objective-c

I have an array with a lot of PFObjects (up to 720). I do saveAll to save them. What happens though if it fails? will I end up with some objects saved and others not? (bad outcome) or will it be all or none of them saved? (good outcome)
I am getting a fail sometimes, and here's the details.
Error: Error Domain=com.parse.networking.error Code=-1011 "Expected
status code in (200-299), got 504" UserInfo=0x2e0d2791
{NSErrorFailingURLKey=https://api.parse.com/2/multi,
NSLocalizedDescription=Expected status code in (200-299), got 504}
(Code: 100, Version: 1.2.18) 2014-05-22 18:17:10.864 Clan
Kingdom[7288:60b] SaveAll error Error Domain=Parse Code=100 "The
operation couldn’t be completed. (Parse error 100.)"
UserInfo=0x2e0d2791 {temporary=1, code=100, error=Error
Domain=com.parse.networking.error Code=-1011 "Expected status code in
(200-299), got 504" UserInfo=0x2e0d2791
{NSErrorFailingURLKey=https://api.parse.com/2/multi,
NSLocalizedDescription=Expected status code in (200-299), got 504}}
The weird thing is, looking at the dashboard it does seem to have saved the data, so not sure why it gave me that error.

Related

WSO2 API Manager returning RunTime Error

I have an API in WSO2. When I try to test it in the store with valid parameters via GET, it returns the following error message:
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>101504</am:code>
<am:type>Status report</am:type>
<am:message>Runtime Error</am:message>
<am:description>Send timeout</am:description>
</am:fault>
I have already searched and tried a lot, but with no success, always returning the same error. Don't know if helps, but the api that I try to access is a PHP file.
Any ideas?
EDIT:
I have identical apis to this one, changing only the response, that are working properly. Even if I erase the php file that the API is pointing, the error keep coming.
EDIT:
I changed the code in Management Console, in Metadata>List>APIs:
{"production_endpoints":
{"url":"http://site/myapi.php","config":
{"format":"leave-as-is","optimize":"leave-as-
is","actionSelect":"fault","actionDuration":30000}},
"sandbox_endpoints":
{"url":"http://site/myapi.php","config":
{"format":"leave-as-is","optimize":"leave-as-
is","actionSelect":"fault","actionDuration":30000}},
"implementation_status":"managed","endpoint_type":"http"}
to this:
{"production_endpoints":
{"url":"http://10.20.40.189/ConsultaAutorizacaoCadPos.php","config":null},
"sandbox_endpoints":{"url":"http://10.20.40.189/ConsultaAutorizacaoCadPos.php","config":null},
"implementation_status":"managed","endpoint_type":"http"}
And this error message vanishes. But this new one appears:
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>303001</am:code>
<am:type>Status report</am:type>
<am:message>Runtime Error</am:message>
<am:description>Currently , Address endpoint : [ Name : admin--myapi_APIproductionEndpoint_0 ] [ State : SUSPENDED ]</am:description>
EDIT: this error message is appearing just sometimes. Most of the time the request takes long time to run and then returns nothing( no content )
Any ideas how to solve it?

Value of type 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer' cannot be converted to 'System.Type

I'm working on a custom TFS Build workflow based on the code found in two blogs:
http://www.theringworx.com/blog/?p=494
https://lajak.wordpress.com/2011/08/30/tfs2010-retrieve-associated-workitems-to-changesets-tfs-api/
When I implement the VB.Net code within my XAML workflow, I'm currently getting the following errors on build runtime:
The build process failed validation. Details:
Validation Error: The private implementation of activity '1:
DynamicActivity' has the following validation error: Compiler
error(s) encountered processing expression "TFSService".
Value of type
'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer'
cannot be converted to 'System.Type'.
Validation Error: The private implementation of activity '1:
DynamicActivity' has the following validation error: Compiler
error(s) encountered processing expression "TFS.GetService(Of
VersionControlServer)();".
End of expression expected.
I've traced the error down to this section of code (Simplified from XAML):
TFS=Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory.GetTeamProjectCollectionFactory(New Uri("MyTeamsTFSServer"))
TFSService = TFS.GetService(Of VersionControlServer)()
I've tried changing the type of TFSService from both Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer and System.Type without success.
From what I can tell the error is occurring in the "Of VersionControlServer".
Has anyone ever encountered this? And if so how did you resolve it?
Turns out the issue was the URL I was using, I made a typo when I was entering it in. Yay for descriptive error messages...
I found this while I was checking my authentication using the two methods:
TFS.HasAuthenticated
TFS.Authenticate();
My code blew out when I was running the Authenticate() method.

Application Cache Error

I've got this error:
Application Cache Error event: Manifest fetch failed (-1)
http://localhost:8080/offline.manifest
online: NO, event: error, status: idle
This JSON String show the content of the error:
({"returnValue":true,"eventPhase":2,"timeStamp":1355923608009,"target":{"onprogress":null,"onchecking":null,"onerror":null,"onupdateready":null,"oncached":null,"ondownloading":null,"status":1,"onobsolete":null,"onnoupdate":null},"type":"error","cancelBubble":false,"cancelable":false,"defaultPrevented":false,"srcElement":{"onprogress":null,"onchecking":null,"onerror":null,"onupdateready":null,"oncached":null,"ondownloading":null,"status":1,"onobsolete":null,"onnoupdate":null},"bubbles":false,"currentTarget":{"onprogress":null,"onchecking":null,"onerror":null,"onupdateready":null,"oncached":null,"ondownloading":null,"status":1,"onobsolete":null,"onnoupdate":null}}) debug.js:34
I got it with JSON.stringify(error).
OK I have this information. But what can one understand from here???
Where is the problem? How can I solve it?
Thank you in advance.

Coldfusion ORM EntityToQuery NullPointerException

I am getting an error:
java.lang.NullPointerException
When I call:
<cfdump var="#posts#" top="2">
<cfset postsQuery = EntityToQuery(posts)>
dumping posts shows an array of objects as it should but for some reason the EntityToQuery(posts) is breaking. The error message is not one of the normal ones which tell you what line it broke on etc. its just the following struct:
message: [empty string]
StackTrace: java.lang.NullPointerException
TagContext: array[empty]
Type: java.lang.NullPointerException
Does anyone have any idea what could cause this? I think its data related but I don't know what to look for. Its only happening on one implementation of this code, not the others im working on.
Strange errors stopped the next time the coldfusion service was restarted.
So if anyone else has that problem.... give restarting cf a try

Error 22 when scanning for available WiFi-Networks using CoreWLAN

I use the following code to scan for all available WiFi-Networks:
[[CWInterface interface] scanForNetworksWithSSID:nil error:&err];
Usually I get a NSSet of Networks but sometimes I get the following error:
The operation couldn’t be completed. (com.apple.coreWLAN.error error
22.)
Error Domain=com.apple.coreWLAN.error Code=22
I haven't find anything about that error code 22. Is there a documentation or a solution for this?
Because I had another problem with CoreWlan(http://stackoverflow.com/questions/9943833/cwinterface-returning-no-data) i replaced it with Apple80211.framework.
This also is a workaround for this one...