GithubHelp home page GithubHelp logo

Comments (3)

seratch avatar seratch commented on June 18, 2024

Hi @donneprosus, thanks for asking the question.

The file and message send but the mime type is not populated in the "files" property of the response. If client.files_info(file=file['id']).data['file']["mimetype"] is called afterwards the mime type will be populated.

The v2 method can take some time to finalize full file metadata, so the initial metadata could be still incomplete. This async nature is the reason why the platform had to release v2 method to resolve the runtime performance issue with v1. Mimetype and shares are the ones that may need to be fetched later on the user side. To deal with this, please call files.info API method in addition to files.upload v2 method like you're already doing.

The file and message are not sent and there is no exception thrown. Waiting does not result in the message appearing eventually. In this case the mime type is also not in the initial response from client.files_upload_v2.

I cannot guess the exact reason why this situation arised to you, but if the SDK / platform can provide more information for finding the cause of it out, we will improve it in future releases. If you haven't enabled debug-level logging yet, turning it out may help you identify the reason of the unexpected behavior:

import logging
logging.basicConfig(level=logging.DEBUG)

I hope this clarifies.

from python-slack-sdk.

github-actions avatar github-actions commented on June 18, 2024

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

from python-slack-sdk.

github-actions avatar github-actions commented on June 18, 2024

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.

from python-slack-sdk.

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.