follow me icons

Thursday, July 10, 2014

(unknown) block sequence entries are not allowed in this context at line 5 column 14 (Psych::Syntax Error)

This error come up when I run my cucumber test file.

Solution: the problem is because in my config.yml file I have an entry with "-".

So in my config.yml I have the following:

 member_no: -
 member_name: -
 year: 2014

To fix the issue, just remove the "-" from config.yml so that ruby can parse the yml file

 member_no: 00000010
 member_name: cucumber
 year: 2014

Tuesday, July 1, 2014

Heroku: Permission denied (publickey)

heroku git:clone -a myapp
Cloning from app 'myapp'...
Cloning into 'myapp'...
The authenticity of host ' (' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.


terminal:~ heroku keys:add
Could not find an existing public key.
Would you like to generate one? [Yn] y
Generating new SSH public key.
Uploading SSH public key /Users/terminal/.ssh/ done

termina:~ heroku git:clone -a myapp

Cloning from app 'myapp'...
Cloning into 'myapp'...
Fetching repository, done.

remote: Counting objects: 2405, done.
remote: Compressing objects: 100% (1323/1323), done.
Receiving objects:  12% (305/2405), 3.27 MiB | 12.00 KiB/s