Git Product home page Git Product logo

Comments (4)

c2js avatar c2js commented on June 12, 2024 2

I encounter similar bug, it get trigger when deployed the bot to teams, run in emulator is fine.
the problem is position "*" in __init__function (class ResourceResponse(Model): in _models_py3.py , make it the id must be call as keyword, but the caller in cloud_adapter_base.py:103 doesn't specific the keyword for the parameter. response = response or ResourceResponse(activity.id or "")

class ResourceResponse(Model):
    """A response containing a resource ID.

    :param id: Id of the resource
    :type id: str
    """

    _attribute_map = {"id": {"key": "id", "type": "str"}}

    def __init__(self, *, id: str = None, **kwargs) -> None:
        super(ResourceResponse, self).__init__(**kwargs)
        self.id = id

cloud_adapter_base.py

response = response or ResourceResponse(activity.id or "")

Suggest to update all callers include cloud_adapter_base.py to include the "id="
eg:

response = response or ResourceResponse(id=activity.id or "")

from botbuilder-python.

CiraciNicolo avatar CiraciNicolo commented on June 12, 2024 1

When this will be released? It is a blocker issue for us, is there a roadmap or release date?

from botbuilder-python.

LGDoor avatar LGDoor commented on June 12, 2024

Same issue encountered.

from botbuilder-python.

aacebo avatar aacebo commented on June 12, 2024

I encounter similar bug, it get trigger when deployed the bot to teams, run in emulator is fine. the problem is position "*" in __init__function (class ResourceResponse(Model): in _models_py3.py , make it the id must be call as keyword, but the caller in cloud_adapter_base.py:103 doesn't specific the keyword for the parameter. response = response or ResourceResponse(activity.id or "")

class ResourceResponse(Model):
    """A response containing a resource ID.

    :param id: Id of the resource
    :type id: str
    """

    _attribute_map = {"id": {"key": "id", "type": "str"}}

    def __init__(self, *, id: str = None, **kwargs) -> None:
        super(ResourceResponse, self).__init__(**kwargs)
        self.id = id

cloud_adapter_base.py

response = response or ResourceResponse(activity.id or "")

Suggest to update all callers include cloud_adapter_base.py to include the "id=" eg:

response = response or ResourceResponse(id=activity.id or "")

nice catch! I created a PR to fix the occurrences I found #2057

from botbuilder-python.

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.