Code Monkey home page Code Monkey logo

Comments (7)

gonchik avatar gonchik commented on June 5, 2024 1

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.

Newman-Hui avatar Newman-Hui commented on June 5, 2024

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.

gonchik avatar gonchik commented on June 5, 2024

Hope, this PR will help you :)
https://github.com/AstroMatt/atlassian-python-api/pull/65/files

from atlassian-python-api.

Newman-Hui avatar Newman-Hui commented on June 5, 2024

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.

gonchik avatar gonchik commented on June 5, 2024

I have checked on my test environment it works well.
Could you provide the logs?

from atlassian-python-api.

Newman-Hui avatar Newman-Hui commented on June 5, 2024
    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.

Newman-Hui avatar Newman-Hui commented on June 5, 2024
Received: 404
 Not Found

from atlassian-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.