wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.56k stars 229 forks source link

⁉Got unverified response {"host":"0.0.0.0","ip":"0.0.0.0","port":0} #293

Closed xyangwu closed 2 years ago

xyangwu commented 2 years ago

requirements

Describe your problem

I've been trying Puppet Service PadLocal following the example👉 https://wechaty.js.org/docs/puppet-services/padlocal. And I got unverified response:

curl https://api.chatie.io/v0/hosties/puppet_padlocal_xxxx
> `{"host":"0.0.0.0","ip":"0.0.0.0","port":0}`.

So how to fix this? I didn't change any code from the example provided in docs.

Reproduce your problem

export WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_xxxx
export WECHATY_PUPPET_SERVER_PORT=8788
export WECHATY_PUPPET=wechaty-puppet-padlocal
export WECHATY_LOG=verbose
export WECHATY_TOKEN=xxxx-xxxx-xxxx-xxxx

root@my_instance:~# docker run \
>   -ti \
>   --rm \
>   -e WECHATY_LOG \
>   -e WECHATY_PUPPET \
>   -e WECHATY_PUPPET_PADLOCAL_TOKEN \
>   -e WECHATY_PUPPET_SERVER_PORT \
>   -e WECHATY_TOKEN="$WECHATY_TOKEN" \
>   -p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
>   wechaty/wechaty
# I didn't proceed to the "python-step" for that I couldn't figure out what's going on when runing docker.

Error info

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/

WECHATY Environment Variables: 6
WECHATY_TOKEN=xxxx-xxxx-xxxx-xxxx
WECHATY_DOCKER=1
WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_xxxx
WECHATY_PUPPET_SERVER_PORT=8788
WECHATY_LOG=verbose
WECHATY_PUPPET=wechaty-puppet-padlocal

Starting Docker Container for Wechaty v1.10.4 with Node.js v16.13.0 ...
   ____ _           _   _        _        
  / ___| |__   __ _| |_(_) ___  (_) ___   
 | |   | '_ \ / _` | __| |/ _ \ | |/ _ \  
 | |___| | | | (_| | |_| |  __/_| | (_) | 
  \____|_| |_|\__,_|\__|_|\___(_)_|\___/  

     _         _   _     _               ____          
    / \  _   _| |_| |__ (_)_ __   __ _  | __ ) _   _ _ 
   / _ \| | | | __| '_ \| | '_ \ / _` | |  _ \| | | (_)
  / ___ \ |_| | |_| | | | | | | | (_| | | |_) | |_| |_ 
 /_/   \_\__,_|\__|_| |_|_|_| |_|\__, | |____/ \__, (_)
                                 |___/         |___/   

WECHATY_TOKEN=xxxx-xxxx-xxxx-xxxx 

/wechaty ~

> wechaty@1.10.4 io-client
> node --no-warnings --loader=ts-node/esm bin/io-client.ts

08:45:52 INFO Config registering process.on("unhandledRejection") for development/debug
08:45:52 VERB Config constructor()
08:45:52 VERB wechaty-puppet-service monkeyPatchMetadataFromHttp2Headers()
08:45:52 VERB PoolifyMixin poolifyMixin(EventEmitter)
08:45:52 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
08:45:52 VERB ValidationMixin validationMixin(ContactMixin)
08:45:52 VERB ValidationMixin validationMixin(ContactImplBase)
08:45:52 VERB PoolifyMixin poolifyMixin(ContactImpl)
08:45:52 VERB ValidationMixin validationMixin(ContactSelfMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(FavoriteMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EventEmitter)
08:45:52 VERB ValidationMixin validationMixin(FriendshipMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(ImageMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(LocationMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(UrlLinkMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(MiniProgramMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EventEmitter)
08:45:52 VERB ValidationMixin validationMixin(MessageMixin)
08:45:52 VERB ValidationMixin validationMixin(MessageImplBase)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(MomentMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(MoneyMixin)
08:45:52 VERB PoolifyMixin poolifyMixin(EventEmitter)
08:45:52 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
08:45:52 VERB ValidationMixin validationMixin(RoomMixin)
08:45:52 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:52 VERB ValidationMixin validationMixin(RoomInvitationMixin)
08:45:53 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:53 VERB PoolifyMixin poolifyMixin(AbstractWechatifyMixin)
08:45:53 VERB ValidationMixin validationMixin(TagMixin)
08:45:53 VERB WechatifyMixin wechatifyMixin(EmptyBase)
08:45:53 VERB ValidationMixin validationMixin(DelayMixin)
08:45:53 VERB WechatyGErrorMixin gErrorMixin(WechatySkeleton)
08:45:53 VERB WechatifyUserModuleMixin wechatifyUserModuleMixin(GErrorMixin)
08:45:53 VERB WechatyPluginMixin pluginMixin(WechatifyUserModuleMixin)
08:45:53 VERB WechatyPuppetMixin puppetMixin(PluginMixin)
08:45:53 VERB WechatyLoginMixin loginMixin(PuppetMixin)
08:45:53 VERB WechatyMiscMixin miscMixin(LoginMixin)
08:45:53 VERB WechatyIoMixin ioMixin(MiscMixin)
08:45:53 VERB ValidationMixin validationMixin(WechatyBase)
08:45:53 VERB ValidationMixin validationMixin(WechatyImplBase)

| __        __        _           _
| \ \      / /__  ___| |__   __ _| |_ _   _
|  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | |
|   \ V  V /  __/ (__| | | | (_| | |_| |_| |
|    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, |
|                                     |___/

=============== Powered by Wechaty ===============
       -------- https://www.chatie.io --------

My super power: download cloud bot from www.chatie.io

__________________________________________________

08:45:53 INFO Client Starting for WECHATY_TOKEN: xxxx-xxxx-xxxx-xxxx
08:45:53 VERB WechatyBuilder singleton()
08:45:53 VERB WechatyBuilder newInstance()
08:45:53 VERB WechatyIoMixin constructor()
08:45:53 VERB WechatyLoginMixin constructor()
08:45:53 VERB WechatyPuppetMixin construct()
08:45:53 VERB WechatifyUserModuleMixin constructor()
08:45:53 VERB WechatySkeleton constructor()
08:45:53 VERB StateSwitch constructor(WechatyReady, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:53 VERB ServiceCtl<Wechaty> constructor()
08:45:53 VERB StateSwitch constructor(Wechaty, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:53 VERB StateSwitch constructor(WechatyReset, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:53 VERB Wechaty constructor()
08:45:53 VERB IoClient constructor({token:xxxx-xxxx-xxxx-xxxx, wechaty:Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(), port:8788})
08:45:53 VERB StateSwitch constructor(IoClient, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:53 VERB IoClient start()
08:45:53 VERB StateSwitch <IoClient> active(pending) <- (false)
08:45:53 VERB IoClient hookWechaty()
08:45:53 VERB WechatySkeleton on(login, listener) registering... listenerCount: 0
08:45:53 VERB WechatySkeleton on(logout, listener) registering... listenerCount: 0
08:45:53 VERB WechatySkeleton on(message, listener) registering... listenerCount: 0
08:45:53 VERB WechatySkeleton on(scan, listener) registering... listenerCount: 0
08:45:53 VERB IoClient startIo() with token xxxx-xxxx-xxxx-xxxx
08:45:53 VERB StateSwitch constructor(Io, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:53 VERB Io instantiated with apihost[api.chatie.io], token[xxxx-xxxx-xxxx-xxxx], protocol[io|0.0.1], cuid[xxxxxx-xxxx-xxxx-xxxx]
08:45:53 VERB Io start()
08:45:53 VERB StateSwitch <Io> active(pending) <- (false)
08:45:53 VERB Io initEventHook()
08:45:53 VERB WechatySkeleton on(error, listener) registering... listenerCount: 0
08:45:53 VERB WechatySkeleton on(heartbeat, listener) registering... listenerCount: 0
08:45:53 VERB WechatySkeleton on(login, listener) registering... listenerCount: 1
08:45:53 VERB WechatySkeleton on(logout, listener) registering... listenerCount: 1
08:45:53 VERB WechatySkeleton on(message, listener) registering... listenerCount: 1
08:45:53 VERB WechatySkeleton on(scan, listener) registering... listenerCount: 1
08:45:53 VERB Io initWebSocket()
08:45:53 VERB Wechaty init() Raven enabled (import("raven") succeed)
08:45:53 VERB Wechaty init() getRavenDsn() return undefined, skipped.
08:45:53 VERB Io initWebSocket() connected with protocol [io|0.0.1|xxxxxx-xxxx-xxxx-xxxx||8788]
08:45:53 VERB WechatySkeleton on(login, listener) registering... listenerCount: 2
08:45:53 VERB WechatySkeleton on(scan, listener) registering... listenerCount: 2
08:45:53 VERB StateSwitch <Io> active(true) <- (pending)
08:45:53 VERB ServiceCtl<Wechaty> start()
08:45:53 VERB StateSwitch <Wechaty> active(pending) <- (false)
08:45:53 VERB ServiceCtl<Wechaty> start() super.start() ...
08:45:53 VERB WechatyIoMixin start()
08:45:53 VERB WechatyLoginMixin start()
08:45:53 VERB WechatyPuppetMixin start()
08:45:53 VERB WechatyPuppetMixin start() super.start() ...
08:45:53 VERB WechatyPluginMixin start()
08:45:53 VERB WechatifyUserModuleMixin start()
08:45:53 VERB WechatySkeleton start()
08:45:53 VERB WechatifyUserModuleMixin _wechatifyUserModules()
08:45:53 VERB WechatifyUserModuleMixin _wechatifyUserModules() initializing Wechaty User Module (WUM) ...
08:45:53 VERB WechatifyMixin wechatifyUserModule(ContactImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(ContactImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(DelayImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(DelayImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(ImageImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(ImageImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(LocationImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(LocationImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(MessageImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(MessageImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(RoomImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(RoomImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(TagImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(TagImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)
08:45:53 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)(Wechaty#xxxxxx-xxxx-xxxx-xxxx<>(xxxx-xxxx-xxxx-xxxx))
08:45:53 VERB WechatifyUserModuleMixin _wechatifyUserModules() initializing Wechaty User Module (WUM) ... done
08:45:53 VERB WechatyPluginMixin start() installing plugins(global/0, instance/0) ...
08:45:53 VERB WechatyPluginMixin start() installing plugins(global/0, instance/0) ... done
08:45:53 VERB WechatyPuppetMixin start() super.start() ... done
08:45:53 VERB WechatyPuppetMixin start() initializing puppet instance ...
08:45:53 VERB WechatyPuppetMixin __initPuppetInstance() 
08:45:53 VERB WechatyPuppetMixin __initPuppetInstance() instanciating puppet instance ...
08:45:53 VERB PuppetManager resolve({puppet: wechaty-puppet-padlocal, puppetOptions: undefined})
08:45:53 VERB PuppetManager resolve() resolving name "wechaty-puppet-padlocal" ...
08:45:53 VERB PuppetManager resolveName(wechaty-puppet-padlocal)
08:45:54 VERB PuppetManager resolveName(wechaty-puppet-padlocal): CJS resolved, retry times: 1
08:45:54 VERB PuppetManager resolve() resolving name "wechaty-puppet-padlocal" ... done
08:45:54 VERB PuppetManager resolve() instanciating puppet ...
08:45:54 VERB PuppetSkeleton constructor({})
08:45:54 VERB PuppetMemoryMixin constructor()
08:45:54 VERB PuppetLoginMixin constructor()
08:45:54 VERB PuppetCacheMixin constructor()
08:45:54 VERB PuppetCacheAgent constructor()
08:45:54 VERB PuppetContactMixin constructor()
08:45:54 VERB PuppetRoomMemberMixin constructor()
08:45:54 VERB PuppetRoomMixin constructor()
08:45:54 VERB PuppetFriendshipMixin constructor()
08:45:54 VERB PuppetTagMixin constructor()
08:45:54 VERB PuppetRoomInvitationMixin constructor()
08:45:54 VERB PuppetMessageMixin constructor()
08:45:54 VERB PuppetMiscMixin constructor()
08:45:54 VERB ServiceCtl<PuppetServiceMixin> constructor()
08:45:54 VERB StateSwitch constructor(PuppetServiceMixin, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:54 VERB StateSwitch constructor(PuppetServiceMixinReset, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
08:45:54 VERB PuppetServiceMixin constructor() #0
08:45:54 VERB PuppetWatchdogAgent constructor(xxxxxxxx-xxxx-xxxx)
08:45:54 VERB PuppetWatchdogAgent constructor() timeout 60 seconds
08:45:54 VERB Puppet constructor({})
08:45:54 VERB PuppetManager resolve() instanciating puppet ... done
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() instanciating puppet instance ... done
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() setting memory ...
08:45:54 VERB PuppetMemoryMixin setMemory(xxxx-xxxx-xxxx-xxxx)
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() setting memory ... done
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() setting up events ...
08:45:54 VERB WechatyPuppetMixin __setupPuppetEvents(Puppet<PuppetPadlocal>(xxxx-xxxx-xxxx-xxxx))
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(friendship) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(login) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(logout) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(message) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-invite) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-join) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-leave) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-topic) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(scan) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(dirty) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(dong) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(error) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(heartbeat) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(ready) (listenerCount:0) registering...
08:45:54 VERB PuppetMixin __setupPuppetEvents() puppet.on(reset) (listenerCount:0) registering...
08:45:54 VERB WechatyPuppetMixin __setupPuppetEvents() ... done
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() setting up events ... done
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() emitting "puppet" event ...
08:45:54 VERB WechatyPuppetMixin __initPuppetInstance() emitting "puppet" event ... done
08:45:54 VERB WechatyPuppetMixin start() initializing puppet instance ... done
08:45:54 VERB WechatyPuppetMixin start() starting puppet ...
08:45:54 VERB ServiceCtl<Wechaty> start() super.start() ... done
08:45:54 VERB ServiceCtl<Wechaty> start() this.onStart() ...
08:45:54 VERB Wechaty onStart()
08:45:54 VERB Wechaty <wechaty-puppet-padlocal>(xxxx-xxxx-xxxx-xxxx) onStart() v1.10.4 is starting...
08:45:54 VERB Wechaty id: xxxxxx-xxxx-xxxx-xxxx
08:45:54 VERB Wechaty onStart() ... done
08:45:54 VERB ServiceCtl<Wechaty> start() this.onStart() ... done
08:45:54 VERB StateSwitch <Wechaty> active(true) <- (pending)
08:45:54 VERB ServiceCtl<Wechaty> start() ... done
08:45:54 VERB IoClient startPuppetServer()
08:45:54 VERB PuppetServer constructor({endpoint: "0.0.0.0:8788", puppet: "Puppet<PuppetPadlocal>(xxxx-xxxx-xxxx-xxxx)", token: "xxxx-xxxx-xxxx-xxxx"})
08:45:54 VERB PuppetServer start()
08:45:54 VERB PuppetServer start() initializing FileBox UUID URN Registry ...
08:45:54 VERB PuppetServer start() initializing FileBox UUID URN Registry ... done
08:45:54 VERB PuppetServer start() initializing gRPC Server with options "{}"
08:45:54 VERB PuppetServer start() initializing gRPC Server ... done
08:45:54 VERB PuppetServer start() initializing puppet implementation with FileBoxUuid...
08:45:54 VERB EventStreamManager constructor(Puppet<PuppetPadlocal>(xxxx-xxxx-xxxx-xxxx))
08:45:54 VERB PuppetServer start() initializing puppet implementation with FileBoxUuid... done
08:45:54 VERB PuppetServer start() initializing authorization with token ...
08:45:54 VERB wechaty-puppet-service authImplToken()
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactAlias)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactAvatar)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactCorporationRemark)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactDescription)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactList)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactPhone)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactSelfName)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactSelfQRCode)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(contactSelfSignature)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(ding)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(dirtyPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(event)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(friendshipAccept)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(friendshipAdd)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(friendshipPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(friendshipSearchPhone)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(friendshipSearchWeixin)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(logout)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageContact)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageFile)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageFileStream)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageForward)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageImage)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageImageStream)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageLocation)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageMiniProgram)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messagePayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageRecall)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendContact)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendFile)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendFileStream)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendLocation)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendMiniProgram)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendText)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageSendUrl)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(messageUrl)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomAdd)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomAnnounce)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomAvatar)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomCreate)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomDel)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomInvitationAccept)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomInvitationPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomList)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomMemberList)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomMemberPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomPayload)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomQRCode)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomQuit)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(roomTopic)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(start)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(stop)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(tagContactAdd)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(tagContactDelete)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(tagContactList)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(tagContactRemove)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(version)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(download)
08:45:54 VERB wechaty-puppet-service auth/auth-impl-token.ts authWrapHandlerToken(xxxx-xxxx-xxxx-xxxx)(upload)
08:45:54 VERB PuppetServer start() initializing authorization with token ... done
08:45:54 VERB PuppetServer start() initializing gRPC health service ...
08:45:54 VERB PuppetServer start() initializing gRPC health service ... done
08:45:54 VERB PuppetServer start() initializing TLS CA ...
08:45:54 VERB PuppetServer start() initializing TLS CA ... done
08:45:54 VERB PuppetServer start() initializing gRPC server credentials ...
08:45:54 VERB PuppetServer start() TLS enabled.
08:45:54 VERB PuppetServer start() initializing gRPC server credentials ... done
08:45:54 VERB PuppetServer start() gRPC server starting ...
08:45:54 VERB PuppetServer start() gRPC server starting ... done
08:45:54 VERB StateSwitch <IoClient> active(true) <- (pending)
xyangwu commented 2 years ago

curl https://api.chatie.io/v0/hosties/puppet_padlocal_xxxx

The token attached in the url should be wechat_token (uuid) instead of puppet_padlocal_xxxx according to another example 👉https://wechaty.js.org/docs/puppet-services/diy#7-start-your-wechaty-token-gate-server. Finally, I got validated response from this url😃:

curl https://api.chatie.io/v0/hosties/xxxx-xxxx-xxx-xxxx
{"host":"xxx.xxx.xxx","ip":"xxx.xxx.xxx","port":8788}
huan commented 2 years ago

Congratulations!