Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError on importing 1st repo #1

Open
PetervdPerk opened this issue Aug 26, 2017 · 1 comment
Open

ValueError on importing 1st repo #1

PetervdPerk opened this issue Aug 26, 2017 · 1 comment

Comments

@PetervdPerk
Copy link

PetervdPerk commented Aug 26, 2017

Hey MarcelSimon your migration script looks pretty neat.

I've tried to migrate my repo's from Gitlab, detection and API calls are working fine.
However on the migration of the first repo I am getting this error:

Migrating project git@********.nl:PetervdPerk/GLT-Assign2.git to project GLT-Assign2 now.
Do you want to continue? (please answer yes or no) yes
Traceback (most recent call last):
File "migrate_gitlab_to_gogs.py", line 107, in
print('Could not create repo %s because of %s'%(src_name,json.loads(create_repo.text)['message']))
File "/usr/lib/python3.4/json/init.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

@MarcelSimon
Copy link
Owner

It seems there was a problem with creating a repository. Maybe it already exists in gogs? The ValueError seems to occur when printing the error message, not sure why this happens though. Are the API keys correct? Maybe check that again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants