-
Notifications
You must be signed in to change notification settings - Fork 146
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
Error when calling Repository.ListFiles #127
Comments
Hmm, I will check the behavior. 🤔 |
Many thanks, just let me know if you need more info to reproduce the issue please. |
Can it be because the client is never instantiated for the Repositories? I cant seem to find it in the code for creating the repository object, and if c *Client is not instantiated, then you get the null pointer exception:
|
And solution could be something like:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm trying to list files in my BitBucket repository but I get an error.
My module setup is:
The test code is as follows:
(just change the "my" variables for your user, pass, owner, repo, etc.)
The error happens in the line:
I have checked that the options and the url are ok, and also that it works when called from the browser:
https://github.com/ktrysmt/go-bitbucket/blob/v0.9.9/repository.go#L220
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/src
Example URL: https://api.bitbucket.org/2.0/repositories/myuser/myslug/src/myref/mypath
But when I call it from code it returns "invalid memory address or nil pointer dereference", any help please?
Many thanks,
Dani
The text was updated successfully, but these errors were encountered: