I have created a Java BL function that gets translated into a delete request when deployed to production. When I invoke the function, both from the backendless console and via REST (with Postman) I get the following error:
400 - Service method not found (14002)
All of my other (previously created) functions (that are GET/POST) seem to be working just fine. Deploying via jar upload also displays the same error.
I tried running ./Coderunner.sh to get into debug mode to see what could be happening, but the functions don’t even show up in the backendless console for me to invoke when coderunner is running in my terminal (only Deployed Services are shown).
The only issue I noticed is this:
If you deploy the service to the Backendless servers (and it does show up in console just fine for me), but after that, you run the service in the debug mode, then the console does not show the service in debug. I logged an internal issue for this scenario.
I have also tried changing the method name to “deleteUser”, which would translate to DELETE /User in the console, but the same issue arises.
I also created a “testDelete” function with a simple int param which gets interpreted as a regular POST, and it seems to be doing the same. It’s as if this is not limited to just DELETE methods, rather any new methods I create.
Just tried that - deleted the service in console, and attempted a re-deploy with coderunner. Now the service doesn’t even show under “DEPLOYED SERVICES” in the console, despite there being no errors when running the deploy script.
When I try to upload a jar to see if that will work, it shows “service not found” at first, then disappears entirely after a page refresh.
Thanks, Renato. The project indicated another problem - there are 4 services in the project. 3 of them are already published. When you run CodeRunner in the debug mode and all 4 services go into debug, they do not show up as such in console. I will add this problem to the internal ticket.
Hi Mark, is there any update on this?
I can verify that I am now able to see the services when deployed in debug mode, but using Deploy.sh for production still does not correctly (re)publish that service that I was advised to delete as a workaround.
I just verified that all services in the project become available in the debug mode, even when they are already published to the server. On top of this when I deploy updated service code to the server, it also gets properly updated.
If you experience a problem, could you please provide step-by-step instructions for duplicating the error?
I have tried to do a deploy to production two ways:
Compile the project
I execute ./Deploy.sh in terminal from the /bin folder, JAVA_HOME is set
No errors are displayed, hits “successfully published all event handlers and timers”
Check backendless console, fourth service that I expect to see re-deployed in the console is still missing, even after clicking the “Refresh service list” button and doing a full page reload
This time, execute ./Coderunner.sh (also with JAVA_HOME set)
execute "publish" command
No errors are displayed, hits "successfully published all event handlers and timers"
Same result; service is not re-populated in console
This is after I originally had all 4 services published
Deleted one service
On next deploy, it is expected that the fourth service would re-appear after successful push, but only 3 are shown
Hi Mark, this issue seems to still persist. Is there any update with the extra context I provided?
In addition, it also seems that any logic changes to my cloud code project and any new services do not get pushed into production with both processes as noted above (I also ensured my bin folder was up to date from backendless console code gen). The services (and changes) still show up / work fine when testing in debug.
Thank you for looking into this - I do now see in console that you were able to publish all services.
I am however still unable to get this working - Any changes I make to the project are not reflected when deploying to production. I also tested this by creating a brand new test service in my project, which also is not published to prod when using the deploy script.
Similar to before, one of the methods you were able to “successfully” publish still returns a 400 error on invocation:
400 - ExceptionClass:"ClassNotFoundException"
Are there still issues surrounding this process, or am I somehow missing something? My process to deploy code hasn’t changed from what was previously done on 3.x.