PhoneGap Build Failure - Deploy To Temporary Location


#1

I recently upgraded to 6.3.1. I can Start My App In the Browser and I can deploy it to Volt.

When I make a native app with phonegap the bottom of the screen says “deploying your project to a temporary location.” There are no errors. I don’t believe I have changed anything.

Ideas?

Thank you,
Warren


#2

Are you deploying to your own PhoneGap account or the one built into AppStudio?


#3

My own. I have logged into the account and don’t see anything obviously wrong.

The PhoneGap dialog does not even come up in AppStudio…


#4

What happens if you try one of the PhoneGap samples which comes with AppStudio?

Are there any messages in the AppStudio log? (See the About screen).


#5

2018-01-25 16:28:07,882 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
File “MainFrame.py”, line 1565, in OnToolClickStart
File “MainFrame.py”, line 1409, in OnMenuRunNativeAppMenu
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 2110, in PhoneGapDeploy
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 741, in Deploy
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in position 17: ordinal not in range(128)
2018-01-25 16:30:41,678 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
File “MainFrame.py”, line 1565, in OnToolClickStart
File “MainFrame.py”, line 1409, in OnMenuRunNativeAppMenu
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 2110, in PhoneGapDeploy
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 741, in Deploy
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in position 17: ordinal not in range(128)
2018-01-25 16:32:11,454 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
File “MainFrame.py”, line 1565, in OnToolClickStart
File “MainFrame.py”, line 1409, in OnMenuRunNativeAppMenu
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 2110, in PhoneGapDeploy
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 741, in Deploy
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in position 17: ordinal not in range(128)
2018-01-25 16:40:06,864 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
File “MainFrame.py”, line 1565, in OnToolClickStart
File “MainFrame.py”, line 1409, in OnMenuRunNativeAppMenu
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 2110, in PhoneGapDeploy
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 741, in Deploy
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in position 17: ordinal not in range(128)
2018-01-25 16:41:53,457 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
File “MainFrame.py”, line 1565, in OnToolClickStart
File “MainFrame.py”, line 1409, in OnMenuRunNativeAppMenu
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 2110, in PhoneGapDeploy
File “IDEController.py”, line 65, in wrapper
File “IDEController.py”, line 741, in Deploy
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in position 17: ordinal not in range(128)


#6

Good stuff! There’s a right double quotation character in position 17 in one of the files it is trying to process.

Could you check your files for this character?


#7

What is the simplest way to do this?


#8

George,

If I comment out all the code in each form, one by one, and then try the
build to see if it fails, will this be a valid test to determine which
form has the error? Does the u201d simply look like " ?

Thank you,
Warren


#9

Have you seen smart quotes? These are the ones which angle into the text. Editors like Word insert them automatically for you. You can end up with them when you copy and paste text into your app.

43 AM


#10

You could try commenting out forms, Also, open the .nsbx file in a text editor. Are there any other modules?


#11

George,

/UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\u201d’ in
position 17: ordinal not in range(128)/

Which file is this message referring to (position 17)? I have been
using Notepad ++ to search for non-ASCII (>128) in :

All my forms

.nsx

index.html

code.js

Thank you,

Warren


#12

I have determined the source of the problem…

For my app: contentSecurityPolicy = <meta http-equiv=”Content-Security-Policy” content=”default-src ‘self’ gap://ready file://* *; style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’”>

This has worked until I did the 6.3.1 upgrade. As was mentioned above, “smart quotes” should not be used.
I corrected this problem and there is no PhoneGap error.

Apparently, 6.3.1 must handle this differently than previous versions…

Thanks for the help,
wsundet


#13

Thanks for isolating the problem. We’ll add a check to AppStudio.


#14

For the same app…since the upgrade the PhoneGap Build for Android has
been failing. The PhoneGap logfile is shown below:

Build Date: 2018-02-01 03:58:15 +0000


#15

If this is a different issue, please open a new topic.

The PhoneGap logfile is just a date and time. What is the problem?