Comments (7)
Hi!
Could you add this parameter into your code?
import logging log = logging.getLogger() log.setLevel(logging.DEBUG)
Then provide the detail log.
Please, remove your credentials from logs.
Cheers,
Gonchik Tsymzhitov
from atlassian-python-api.
Nevermind, it was a mistake on my end. The confluence.get() was expecting json and because I was trying to hit ['download']['link'] it wasn't functioning properly
from atlassian-python-api.
Hope, this PR will help you :)
https://github.com/AstroMatt/atlassian-python-api/pull/65/files
from atlassian-python-api.
I believe the issue lies within the request
method
url = urljoin(self.url, path)
its causing my request to skip the /wiki/ section of my base url when trying to download an attachment
Do you have a successful way of retrieving an attachment?
from atlassian-python-api.
I have checked on my test environment it works well.
Could you provide the logs?
from atlassian-python-api.
main()
File "../md2confluence/md2confluence.py", line 727, in main
documentation.mirror_pages()
File "../md2confluence/md2confluence.py", line 672, in mirror_pages
self.dl_attachment(source_attachments[count])
File "../md2confluence/md2confluence.py", line 646, in dl_attachment
r = self.confluence.request(path=url)
File "/Users/newmanhui/PycharmProjects/Reporting_Test/venv/lib/python3.6/site-packages/atlassian/rest_client.py", line 64, in request
log.debug('Received: {0}\n {1}'.format(response.status_code, response.json()))
File "/Users/newmanhui/PycharmProjects/Reporting_Test/venv/lib/python3.6/site-packages/requests/models.py", line 896, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/newmanhui/anaconda3/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/Users/newmanhui/anaconda3/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/newmanhui/anaconda3/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None```
from atlassian-python-api.
Received: 404
Not Found
from atlassian-python-api.
Related Issues (20)
- get_page_as_word is giving data in bytes for .doc format and not .docx. Do we have any method to get .docx format HOT 1
- Is there any async implenetaton?
- confluence.get_space_permissions(space_key) gives 404 HOT 1
- Parsing date-time string for pipeline.completed_on failing due to strftime issue.
- Question: is python 2.7 still supported? HOT 1
- Question: Get all commits on a specific branch HOT 1
- Max of only 500 pages are returned HOT 3
- markdown app HOT 1
- Getting and setting default reviewers in Bitbucket Server
- Assets REST API HOT 3
- Path Variables instead of Query Params in URLs
- Comma in expand query param causes issue if URL encoded HOT 2
- need a function to set the test status in in test execution HOT 1
- Confluence Cloud Python API connection Timeouts
- Jira Software - rank API available? HOT 1
- [Jira] get_issue_changelog broken? HOT 2
- unexpected keyword argument 'paging_workaround' HOT 6
- Insight (Assets) class not correctly setting self.default_headers when cloud=True HOT 1
- [Confluence] Attachments - get_attachments_from_content HOT 1
- Bad Request for pullrequests with page params HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlassian-python-api.