Page 1 of 2
Object 1228 has no method 'replace'
Posted: Sun Nov 24, 2013 4:49 am
by Kapow36
One day, my services were executing fine up until today using this code.
codePendingLink.execute({});//execute pending links service
PendingPhoto.execute({});//execute pending photos service
PendingSignUps.execute({});//execute pending sign ups service
PendingPost.execute({});//execute pending posts service
PendingEvent.execute({});//execute pending events service/code
Now it just returns an error Object 1228 has no method 'replace'
Object 1228 has no method 'replace'
Posted: Sun Nov 24, 2013 5:18 am
by Igor
Hello,
Could you please attach screenshot with error?
Object 1228 has no method 'replace'
Posted: Sun Nov 24, 2013 6:40 am
by Kapow36

Here is a photo. It is a different error yes, but I have made no changes to the app.
Object 1228 has no method 'replace'
Posted: Sun Nov 24, 2013 6:48 am
by maxkatz
Is this happens when a service is invoked?
Object 1228 has no method 'replace'
Posted: Tue Nov 26, 2013 5:26 am
by Kapow36
no, the service never gets invoked. It is returning an error saying that the object (service name) doesn't have any method code.execute({});/code Basically, it isn't compiling the code correctly for some reason.
Object 1228 has no method 'replace'
Posted: Tue Nov 26, 2013 8:15 am
by maxkatz
Can you try removing the service from the page and adding it back?
Object 1228 has no method 'replace'
Posted: Tue Nov 26, 2013 11:32 pm
by Kapow36
I tried that, and it did not help, here are some picks of where the exact error is produced (I removed the try catch block)
Also, here is the exact stand alone code that is failing...
code//Admin Services
if(localStorage.getItem('AdminShow') == "true")//if admin is logged in
{
PendingLink.execute({});//execute pending links service
PendingPhoto.execute({});//execute pending photos service
PendingSignUps.execute({});//execute pending sign ups service
PendingPost.execute({});//execute pending posts service
PendingEvent.execute({});//execute pending events service
}/code
Also a screenshot of my services...
Object 1228 has no method 'replace'
Posted: Wed Nov 27, 2013 4:10 pm
by Kapow36
I tried that, it didn't work
Object 1228 has no method 'replace'
Posted: Wed Nov 27, 2013 6:08 pm
by Maryna Brodina
Hello!
1) Do you have custom JS in mapping or some service event (fail, success, complete)? If so please check this JS.
2) Try to find out in what service error happens (leave one service call in code)
Object 1228 has no method 'replace'
Posted: Wed Nov 27, 2013 7:02 pm
by Maryna Brodina
By the way, most likely in some of request parameter marked as Header in JS mapping you return a number, but it should be string. Please check.