I am trying to create a new application in Parse Cloud Code. According to instructions I have to create an app in Parse.com then run the following command: parse new [application name]
so I created a new app called ABCDE (example name) and called the following: parse new ABCDE
but I saw the following weird output :
... [Some lines indicating it is creating files] ...
Email: ******
Password: ******
1: results
Select an App:
So basically the command line was not capable of pulling the list of my apps (Only one App at that moment) and showed 1:results as the only menu item instead of 1: ABCDE.
I chose 1 anyway and got the following error:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File ".\build\pyi.win32\parse\out00-PYZ.pyz\main", line 711, in main
File ".\build\pyi.win32\parse\out00-PYZ.pyz\main", line 424, in handle_add
File ".\build\pyi.win32\parse\out00-PYZ.pyz\config_handler", line 174, in add_app
IndexError: list index out of range
After struggeling with this for quite some time I decided to create a new App and lets say I called it XYZ and followed the same steps. This time also I got the following option even through I had two apps:
... [Some lines indicating it is creating files] ...
Email: ******
Password: ******
1: results
Select an App:
So it showed 1: results instead of 1: ABCDE 2:XYZ.
I entered 1 anyway and it finished the process with no errors but created the following config file which is broken I believe:
{
"applications": {
"_default": {
"link": "results"
},
"results": {
"applicationId": {
"appName": "ABCDE",
"applicationId": "*****",
"masterKey": "****"
},
"masterKey": {
"appName": "XYZ",
"applicationId": "*****",
"masterKey": "*****"
}
}
}
}
Any ideas how to fix this?