INVOCATION failed

#1

I’m trying to use AutoBahn|CPP and AutoBahn|JS and I am having an error pop up with “INVOCATION failed” when I try to access the args/kwargs in the remote procedure that’s written with AutoBahn|Cpp.

This error is super vague, and reading the source code it’s not ovbious to me what I am doing wrong.

If you all have any suggestions or questions for me to help debug this situation I would really appreciate it.

Thanks,

Andy

0 Likes

#2

I’ve made some progress-- the i ssue was with how I was handling the args[…] array within my AutoBahn|Cpp program. I’ve been successful in passing information about ‘doubles’, now I must handle strings, or change some code so all I broadcast from AutoBahn|JS is numbers.

I guess that’s not a big update, but I didn’t want to let this post get out-of-date.

Thanks,

···

On Monday, September 15, 2014 3:39:24 PM UTC-7, Andy Crafts wrote:

I’m trying to use AutoBahn|CPP and AutoBahn|JS and I am having an error pop up with “INVOCATION failed” when I try to access the args/kwargs in the remote procedure that’s written with AutoBahn|Cpp.

This error is super vague, and reading the source code it’s not ovbious to me what I am doing wrong.

If you all have any suggestions or questions for me to help debug this situation I would really appreciate it.

Thanks,

Andy

0 Likes

#3

To process strings, you can use STL std::string, e.g.

https://github.com/tavendo/AutobahnCpp/blob/master/examples/publish1.cpp#L85

and for receiving do an anycast to std::string, similar to the code here

https://github.com/tavendo/AutobahnCpp/blob/master/examples/subscribe1.cpp#L82

···

Am 16.09.2014 03:24, schrieb Andy Crafts:

I've made some progress-- the i ssue was with how I was handling the
args[...] array within my AutoBahn|Cpp program. I've been successful in
passing information about 'doubles', now I must handle strings, or
change some code so all I broadcast from AutoBahn|JS is numbers.

0 Likes