Here’s our application ID: BBC4C8BE-6E60-4361-8559-EC9B388144C4 (even though it’s in the screenshot).
It’s so strange because the endpoint does exist and I’ve created and hit endpoints without getting this error code up until this point but I’m sure I’m missing something.
That results in this:
Error Domain=BackendlessErrorDomain Code=0 “Request Failed → No Error Data” UserInfo={NSLocalizedDescription=Request Failed → No Error Data}
[
{
"created": 1749607835511,
"___class": "Messages",
"body": "Test test test test test test test test test test test test test test ",
"ownerId": "0465AAA2-8266-4E8A-B665-C58354EE230E",
"updated": null,
"objectId": "D3604349-30B3-46CA-9D2A-7990F791AD19"
},
...
]
Are you still seeing a problem with your request? If so, please provide more details on how you are executing the request, via our console (API Services - Deployed Services - Messaging - Get Messages By Convo ID), using cURL, or some other way?
We’re using AlamoFire in XCode in Swift for iOS development.
We’ve foud that the issue only exists for newly created endpoints.
Already existing endpoints worked just fine.
For example: Testing/test works fine
However, Testing/getMessages fails despitet being structured the same way as far as I can tell.
And both are being called the exact same way but only one is acknowledged as existing with the AlamoFire calls.
The issue occurs when the endpoint is called using AlamoFire for a brand new endpoint.
Create new GET endpoint in already existing Service like Testing in our app (included the app id for our app).
Call endpoint using AlamoFire, error doe: 14002 “does not exist”
It works in this case:
Modify already existing GET endpoint like Testing/test and use the exact same code or heck, give it the exact same name (after changing the previous newly created one to avoid a conflict).
Call endpoint using AlamoFire.
Success.
It seems for some reason, newly created endpoints aren’t being called successfully.
I don’t know when it started as we hadn’t the need for new endpoints for a few months but now we do.
Thisis a sample of how we invoke the call:
let exp = expectation(description: “Fetch Lobby Users’ Locations”)
DB.SERVICES.LYNQ.RETRIEVE_LOCS.invoke(parameters: lobbyId, callback: { response in
switch response {
case .success(let lobby_points):
// expect 2, non-nil values
// dummy assert
case .error(_):
// dummy assert
}
exp.fulfill()
})
I am not familiar with the AlamoFire, and we do not provide support for 3rd party libs, so if you’ve got any issue with the module would be better to ask on their community, perhaps you compose the request in wrong way.
Once you deploy a new service/method it becomes available immediately, on the API Service screen you can select the method and invoke it, also there is the ability to copy cURL for running the method. You can prepare the cURL for new method and run right after deploying the service.
But, if you do not see the new method in the list please let us know
If we had ever had issues with calling endpoints from the beginning, I’d be inclined to agree with you, but we haven’t had this issue before and it’s consistently only existent with newly created endpoints. The method with which we use to call endpoints works just fine. What I’m having an issue with is what the supposed difference seems to be between old and new endpoints that’s causing this issue because it’s consistently replicable.
I’ll still give the example of the Testing/test endpoint. That works fine. But Testing/get messages doesn’t.
That’s not indicative of an invoke error but rather a backend config error. Something is different between the new and old endings and I won’t know what it is which is why I reached out. I don’t know if I’m missing something myself that doesn’t expose the new endpoints as the old ones are.
If the issue was AlamoFirs, we should’ve had this issue from the start or it should exist with all endpoints right now but that’s not the case.
I provided dummy code in the same format.
That’s the code we use, you’d pretty much just be swapping out LYNQ for TESTING and RETRIEVE_LOCS for GET_MESSAGES as those are variables to represent the actual strings.
I would love to assist you and solve the issue, however, since the method is persisted in your app and it can be running using cURL (which means the method is available for running using REST) it seems like you need to debug your code which is out of our control
Was mainly reaching out for insight on differences between the old and new endpoints because that’s the only place we’re having issues. We’ve never seen this before.
But if the configuration seems to be the same for those two endpoints, it wouldn’t make sense that were suddenly getting issues for the newly created ones.
We’ll go back to the drawing board and see what we can do if they look the same on your end.