Closed kakyoism closed 3 years ago
I cannot seem to repro this issue using macOS Catalina 10.15.7 (19H2) and Python 3.9.2, also with chinese locale, even after purging and reinstalling with a clean cache, so it definitely looks like a network issue. More specifically, WebSocket opening handshake ('WebSocket connection upgrade failed (403 - Forbidden)')
looks like an issue with the allowed host. Have you tried adding your hostname and related ips to the Known Host configuration of the Authoring?
With regards to HTTP, it's a nice feature request. The limitation of HTTP is its lack of bi-directional communication, which rules out the subscription with event handler part of the system. For that reason, HTTP may be used for quick scripting, but I think WAMP should be preferred for more complicated cases that waapi-client-python intends to support.
A dedicated developer can definitely add the feature without too much problem as the WAMP code is fairly decoupled from the client wrapper through a queue system. One would probably want to implement a variant of _WampClientThread and adapt how the subscription function is made available in the main client class depending on the backend used.
Solved. Port 8080 was used by a background process. Sorry for the bother.
My Setup
waapi-client-python
Repro
python3 /Applications/Audiokinetic/Wwise_2019.2.7/SDK/samples/WwiseAuthoringAPI/python/waapi-client-py3/rpc.py
Attempts
The attempts below don't affect the results above.
Closed all the apps requiring networking.
Upgrading Autobahn
Questions
Without serious debugging, I cannot rule out the possibility that my office security setup may have influence over WAMP-based ops. But waapi-client does not support HTTP, so I don't have a workaround right now.
I wish that WAMP support could give more diagnostics to help me figure out if it's a bug or simply my setup problem. Also, it would be greatly appreciated if HTTP could work with waapi-client.