Skip to content

send_message api giving error ""Missing 'num_before' argument"" #595

Open
@shritwikbhaduri

Description

@shritwikbhaduri

i am was just trying to test locally running zulip server by sending message to a stream using bot credentials with the following code:
`import zulip
import pprint as pp
client = zulip.Client(config_file=".zuliprc", insecure=True)

result = client.get_user_by_id(9)
print(result)

Send a stream message
request = {
"type": "stream",
"to": "klasa_integration",
"subject": "test",
"content": "this is a test message"
}
result = client.send_message(request)
pprint.pprint(result)`

and this is giving the following error:
Insecure mode enabled. The server's SSL/TLS certificate will not be validated, making the HTTPS connection potentially insecure /Users/user1/.virtualenvs/disana/lib/python3.8/site-packages/urllib3/connectionpool.py:997: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.0.110'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( {'result': 'error', 'msg': "Missing 'num_before' argument", 'var_name': 'num_before', 'code': 'REQUEST_VARIABLE_MISSING'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions