Support Topics Documentation Slack YouTube Blog

after app clone, business logic error


(zeev mindali) #1

I cloned my app as mark told me.

now I getting error (attached in file)
I can not clone again the app, I will get different api key (already load to App Store and google store)
master app id : 7CE1403A-11C3-EA7A-FFA8-82959DD34300
cloned app id : 12A3F742-27DB-6E63-FFD9-2DAFE48DE600

must get an answer, can not work :frowning:


(Mark Piller) #2

We’re looking into it.

Regards,
Mark


(Mark Piller) #3

We checked the problem and found the following: your “master” app has a product installed from the Marketplace. When an app is cloned, anything installed from the Marketplace is not carried over. As a result, in the “cloned” app there is a reference in the code to the product from the marketplace. To fix the error you should install the same product from the Marketplace in the cloned app. Please give it a try and let us know if the problem goes away.

Regards,
Mark


(zeev mindali) #4

found it, it was the json2xml.

but it’s free, so why not to copy it or clone it?
anyway, thanks for the quick answer and support.
as allways, backendless rocks!


(zeev mindali) #5

I found now that it not copied all, I had after create which not exists.
I tried to create it again, but encountered error.


(Mark Piller) #6

Did you install the missing product from the Marketplace?


(zeev mindali) #7

Yes, i installed
It was json to xml
But i missing the after create in event


(Mark Piller) #8

Got it. I will make sure someone looks into it.


(zeev mindali) #9

getting error

/var/lib/backendless/repo/12a3f742-27db-6e63-ffd9-2dafe48de600/files/servercode/CODELESS/haifa/DRAFT/handlers/persistence/events_items/afterCreate.js.xml


(Sergey Chupov) #10

Hi,
I have copied the missing file from your original app. Please verify there’s no error now.


(zeev mindali) #11

new error:

2018-08-16 12:02:43,728 | SERVER_CODE | ERROR | [7807] Error: Backendless encountered an error while handling the request. An internal trouble ticket with ID 7162BB00-C62D-6670-FFFC-6810AF804F00 has been created and we will be investigating the issue.
at new ResponseError (/var/lib/backendless/nodejscoderunner/node_modules/backendless-request/lib/index.js:38:116)
at checkStatus (/var/lib/backendless/nodejscoderunner/node_modules/backendless-request/lib/index.js:229:23)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)


(Mark Piller) #12

Please describe the steps to reproduce


(zeev mindali) #13

that’s the problem mark,
I sending throw my application (viable in apple under repo ai, and in google under repocyber)


(Mark Piller) #14

Could you please check what invocation results in the error? Without this we would have no idea where to look for a solution


(zeev mindali) #15

2018-08-16 12:09:55,575 | SERVER_CODE | INFO | [31965] Processing finished in 457.583ms
2018-08-16 12:09:56,321 | SERVER_CODE | INFO | [31763] [5A82CAB3-8BEB-5FCC-FF10-DFC160CFD400] [INVOKE HANDLER] persistence.beforeCreate (events_items)
2018-08-16 12:09:56,327 | SERVER_CODE | INFO | [31763] Building ServerCode Model for path (/var/lib/backendless/repo/12a3f742-27db-6e63-ffd9-2dafe48de600/files/servercode/CODELESS/haifa/PRODUCTION)
2018-08-16 12:09:56,341 | SERVER_CODE | INFO | [31763] ServerCode Model built in 14ms
2018-08-16 12:09:56,345 | event | DEBUG | text
2018-08-16 12:09:56,345 | SERVER_CODE | INFO | [31763] test for sergey
2018-08-16 12:09:56,348 | SERVER_CODE | INFO | [31763] Processing finished in 40.510ms
2018-08-16 12:09:56,615 | SERVER_CODE | INFO | [32463] [8A95C67D-7037-35E4-FF83-D2BB89DAD500] [INVOKE HANDLER] persistence.afterCreate (events_items)
2018-08-16 12:09:56,617 | SERVER_CODE | INFO | [32463] Building ServerCode Model for path (/var/lib/backendless/repo/12a3f742-27db-6e63-ffd9-2dafe48de600/files/servercode/CODELESS/default/PRODUCTION)
2018-08-16 12:09:56,641 | SERVER_CODE | INFO | [32463] ServerCode Model built in 23ms
2018-08-16 12:09:56,801 | where clause: | DEBUG | distance( 34.94859312996131,32.48137263557484,lan,lat ) < km(0.5) AND isClosed=false
2018-08-16 12:09:56,801 | new event | DEBUG | creating new event
2018-08-16 12:09:56,950 | SERVER_CODE | ERROR | [32463] Error: Backendless encountered an error while handling the request. An internal trouble ticket with ID B8A4C608-C8FB-CED8-FF9A-CBA67966A200 has been created and we will be investigating the issue.
at new ResponseError (/var/lib/backendless/nodejscoderunner/node_modules/backendless-request/lib/index.js:38:116)
at checkStatus (/var/lib/backendless/nodejscoderunner/node_modules/backendless-request/lib/index.js:229:23)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2018-08-16 12:09:56,952 | SERVER_CODE | INFO | [32463] Processing finished in 351.510ms


(Mark Piller) #16

That does not help. Please help us connect the dots. You do X, Backendless does Y and throws and error. What is X? What is Y?


(zeev mindali) #17

I’m talking with Sergey in the chat, I think he got the issue


(zeev mindali) #18

x- sending data from my mobile to table event_items
y- after event_item row is created, after create is fired, if it’s new location it will create new entry, otherwise it will attach the event_item as relation.
in the debug I see he wants to create new location, which is o.k., but falls into error


(zeev mindali) #19

hi mark, thanks to sergy, all is working now.
I had few more errors, but I found out that the clone app is not copying everything.
you need to check that option