Description:
WHile testing using the field service app installed via the Studio Samples pane, clicking the login button with no user or password info (which should work) results in an error being thrown in the console:
[ERROR] : [LiveView] {
[ERROR] : error = {
[ERROR] : backtrace = "#0 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/83D68FB1-AC79-44FA-A309-D7D7BEEC6C02/Ti.FieldService.app/app.js:600\n#1 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/83D68FB1-AC79-44FA-A309-D7D7BEEC6C02/Ti.FieldService.app/app.js:478\n#2 createUser() at :51\n#3 () at :45";
[ERROR] : line = 127;
[ERROR] : message = "Can't find variable: Alloy";
[ERROR] : name = ReferenceError;
[ERROR] : sourceId = 359535296;
[ERROR] : };
[ERROR] : module = "/data/setup.js";
[ERROR] : }
[ERROR] : Script Error {
[ERROR] : backtrace = "#0 () at :45";
[ERROR] : line = 52;
[ERROR] : message = "'undefined' is not a function (evaluating 'setup.createUser()')";
[ERROR] : name = TypeError;
[ERROR] : sourceId = 359534688;
[ERROR] : }
Steps to reproduce:
1) Import the field sample app via Studio sample pane
2) Enable liveview in run configurations
3) Launch a liveview session in iPad simulator
4) Click login button
Result:
Error thrown as seen above
Expected Result:
No error, prompting for creating sample user and data
Still see the issue with LiveView 0.1.29 and Alloy 1.2.0. Here is the updated stack trace:
resolved in [master] https://github.com/appcelerator/liveview/commit/200e160f2588562f7aa619500b502ee2f887f88f
Verified with environment: Appcelerator Studio: 3.2.0.201312151544 SDK: 3.2.0.v20131216191854 alloy: 1.3.0-cr2 acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Mac OSX 10.9 Mavericks
The following error message is observed when running Field Service app. App didn't launch the login window. Please refer attached *console log* file for more info.
Test Environment: |Appc-Studio | 3.4.0.201409161950| |Titanium SDK | 3.4.0.v20140922135716| |Titanium CLI | 3.4.0-rc4| |Alloy | 1.5.0-rc3| |ACS | 1.0.17 | | Liveview | 1.0.6 | |OS | Windows 8.1 (x64)|
Does this issue occur without LiveView as well?
I can launch the Field Service App without liveview. It doesn't show any errors as earlier. But I can not run the app because of the issues on enabling Appc-services. Test Environment: Appc-Studio: 3.4.0.201409231834 Titanium SDK: 3.4.0.v20140922135716 Titanium CLI: 3.4.0-rc4 Alloy : 1.5.0-rc3 Device: Galaxy Note 10.1 (v4.3) OS: Windows 8.1 (x64)
What is the issue you are running with enabling services? Which environment you are pointing to in Studio - Prod or Pre-prod?
I am pointing to production environment (https://dashboard.appcelerator.com) Cloud enablement fails for existing apps such as importing sample projects from studio. It doesn't generate acs key.
Can you try another org (for example, Appcelerator Inc.) as this specific org may have an issue? Try pointing to preprod env as well.
In production environment, I have the access only for *qe_test_org_prod* which doesn't allow me to enable cloud. In preprod, I used *QEVPCTest* org and enabled cloud services. But when I run the field service app(without liveview enabled), I received following excepting after I pressed Login button.
I attached the full console log as a file *ConsoleLog2.txt*
{panel:title=With LiveView} Actual Reason for Reopening this ticket is still reproducible. FSA is still throwing the runtime error with following console errors
{panel} {panel:title=Without LiveView} The Error scenario I got earlier which is mentioned in above comments, doesn't occur anymore. {panel}
Closing ticket since sample app no longer available.
Closing ticket as Won't Fix with reference to the above comments.