# Protobuf decode into JSON

**URL:** <https://discourse.nodered.org/t/protobuf-decode-into-json/56138>\
**Category:** General\
**Created:** [5 January 2022 10:40 UTC](https://discourse.nodered.org/t/protobuf-decode-into-json/56138 "2022-01-05T10:40:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SumeetBulani](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@SumeetBulani](https://discourse.nodered.org/u/SumeetBulani)\
**Post date:** [5 January 2022 10:40 UTC](https://discourse.nodered.org/t/protobuf-decode-into-json/56138/1 "2022-01-05T10:40:54Z")

</div>

Hello Community,  
I am trying to decode proto formatted data I receive from rabbitmq. I am using node-red-contrib-protobuf node. I have tried the other available nodes as well but none of them seem to be working.  
With this one, the error I get is :  
"No .proto types loaded! Check that the file exists and that node-red has permission to access it."  
And an error on the node is "Protofile not ready"  
The reason could be that i haven't provided the proto file path correctly. This is how I specified the path:  
Path: /C:/Users/S\_SB/.node-red/call.proto

And the type is correct.  
Also, I can see the data in the proto format in the output when I don't use decoder so the data is coming through but fails to decode.  
Any idea, what the reason(s) might be and if the path is in the correct format?  
Any help would be appreciated.  
Thank you!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [5 January 2022 10:48 UTC](https://discourse.nodered.org/t/protobuf-decode-into-json/56138/2 "2022-01-05T10:48:39Z")

</div>

I would try without the initial / ie just `C:/Users/S_SB/.node-red/call.proto`

---

<div class="post-metadata">

**Author:** ![SumeetBulani](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@SumeetBulani](https://discourse.nodered.org/u/SumeetBulani)\
**Post date:** [5 January 2022 10:53 UTC](https://discourse.nodered.org/t/protobuf-decode-into-json/56138/3 "2022-01-05T10:53:27Z")

</div>

Hi @dceejay  
Thank you for your reply. I tried that with the other node and it wasn't able to read the file. With the current node, there is no error in the debug console but the error on the node "Protofile not ready" still exists. Node red is not able to access the file somehow. Even though I changed the file location to node red installation folder. Any idea how I can make it working?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 March 2022 10:53 UTC](https://discourse.nodered.org/t/protobuf-decode-into-json/56138/4 "2022-03-06T10:53:57Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
