Closed Studyleague closed 6 months ago
Issue Title: Error occurred during parsing: Fail to push limit
Description: I encountered the error message "Error occurred during parsing: Fail to push limit" while attempting to deserialize protobuf data in the Upstox WebSocket implementation. This issue arises when parsing the data using Google Protocol Buffers (protobuf) with PHP (Laravel) on a Windows system. I have attached relevant screenshots to assist in diagnosing the issue. Any guidance or insights into resolving this error would be greatly appreciated.
Just wanted to quickly understand a few things,
- We've tried integrating the PHP sdk of web socket to get the market data but encountered few issues,
- As per the github repo, it was required to install the "protobuf" package via composer but there is no such package so we installed "google/protobuf" pkg which was available & shown as an alternative. PFA screenshot of the same.
- Similarly, "websocket-client" was also not there so we installed "gos/websocket-client" pkg which was available & shown as an alternative. PFA screenshot of the same. Kindly confirm if these packages are ok to work with or any other pkg has to be installed and also let us know if any changes are required to be made in the websocket_client.php code as we installed different type of pkg.
- After going through all the steps as per the SDK documentation, changing the
ACCESS_TOKEN
, we tried running the websocket_client.php file but encountered the error shown in the attachment named "error". Pls guide us what could be the reason.- Also, pls let know if the file runs successfully then, what's the next step to get the LTP values of all 2500 stocks that we want , in real-time.
![]()
Same Issue for me
@Studyleague @janakkapadia
Thank you for letting us know about the issues with the sample WebSocket code on GitHub. We appreciate your feedback, as it helps us improve our resources.
We have addressed the problem by updating the code. The new version uses different libraries that are currently available and should resolve the dependency issues you experienced. Please try out the updated code and see if it works for your needs.
If you encounter any further issues or have additional feedback, don't hesitate to drop a note on our community forum at Upstox Developer API Community. This forum is actively monitored, and our team, as well as the community members, will be more than happy to assist you.
Your contributions and feedback are immensely valuable to us, and we're committed to ensuring a smooth experience with our tools and resources.
Thanks!!
Just wanted to quickly understand a few things,
ACCESS_TOKEN
, we tried running the websocket_client.php file but encountered the error shown in the attachment named "error". Pls guide us what could be the reason.