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

problem with Bitbucket private repository #73

Open
lalote opened this issue Nov 7, 2023 · 0 comments
Open

problem with Bitbucket private repository #73

lalote opened this issue Nov 7, 2023 · 0 comments

Comments

@lalote
Copy link

lalote commented Nov 7, 2023

Hello everyone, I'm trying to generate a README file using the Docker option:

docker run -it \
 -e OPENAI_API_KEY=$OPENAI_API_KEY \
 -v "$(pwd)":/app zeroxeli/readme-ai:latest \
readmeai -o readme-ai.md -r https://user:[email protected]/devs/ms-test 

However, I'm encountering the following error:


Traceback (most recent call last):
  File "/home/tempuser/.local/bin/readmeai", line 8, in <module>
    sys.exit(commands())
  File "/home/tempuser/.local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/tempuser/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/tempuser/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/tempuser/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/tempuser/.local/lib/python3.9/site-packages/readmeai/cli/commands.py", line 35, in commands
    main(
  File "/home/tempuser/.local/lib/python3.9/site-packages/readmeai/main.py", line 38, in main
    conf.git = GitConfig(repository=repository)
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 3 validation errors for GitConfig
repository
  Invalid repository URL or path: https://user:[email protected]/devs/ms-test  (type=value_error)
source
  expected str, bytes or os.PathLike object, not NoneType (type=type_error)
name
  expected str, bytes or os.PathLike object, not NoneType (type=type_error)

If I use a public GitHub repository, I don't have any problem.

My question is, can I use a private repository, or is there something wrong with the parameters I'm passing? Any ideas about what might be causing this error?

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

1 participant