Skip to content

创建外部企微群可以,内部企微群失败 #76

@dususu

Description

@dususu

执行
bot = get_wechaty_bot()
RoomId = await bot.puppet.room_create(contact_ids=default_contact, topic=group_title)
企业微信内部建群报错,但是修改 default_contact 列表创建外部群成功了。

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/fastapi/applications.py", line 289, in call
await super().call(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/fastapi/routing.py", line 273, in app
raw_response = await run_endpoint_function(
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
return await dependant.call(**values)
File "/data/lilei/chatgpt-on-wechat/api/incident/group_webhook.py", line 17, in flashduty_incident_msg
await Event_type.i_custom(complete_body)
File "/data/lilei/chatgpt-on-wechat/api/incident/Event_type.py", line 71, in i_custom
RoomId = await bot.puppet.room_create(contact_ids=default_contact, topic=group_title)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/wechaty_puppet_service/puppet.py", line 650, in room_create
response = await self.puppet_stub.room_create(
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/wechaty_grpc/wechaty/init.py", line 515, in room_create
return await self._unary_unary(
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/betterproto/init.py", line 1124, in _unary_unary
response = await stream.recv_message()
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/grpclib/client.py", line 425, in recv_message
await self.recv_initial_metadata()
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/grpclib/client.py", line 393, in recv_initial_metadata
self._raise_for_grpc_status(status, message, details)
File "/root/.virtualenvs/chatgpt-on-wechat/lib/python3.8/site-packages/grpclib/client.py", line 345, in _raise_for_grpc_status
raise GRPCError(status, message, details)
grpclib.exceptions.GRPCError: (<Status.INTERNAL: 13>, 'WorkproErrorCode: 25030, roomCreate(token: puppet_workpro_2bxxxxxxxxxxxxxxxxxxxxxxxxxxad) error! cgi error code: (-3087) message: .', None)
2023-12-01 18:56:47,578 - Wechaty - INFO - receive event <EventReadyPayload(data='data ready')>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions