Subj : Errors tryign to reply to a poll message
To : Digital Man
From : Nightfox
Date : Wed Nov 01 2017 01:01 pm
Hi DM,
With my JavaScript message reader, I've noticed I'm getting a weird error when
I try to reply to a poll message. My reader allows voting, but I wanted to
also reply to the poster of a poll message with some comments. My script calls
bbs.post_msg() to post the reply, and I pass it the sub-board code, reply mode,
and message header. On that line, I get the following error:
Error: can't convert 2147483648 to an integer
Just before that line, I tried having my script output the sub-board code,
reply mode, and message header properties. The number that it was outputting
appears to be the auxattr property of the message header. But when my script
outputs that information, it generates a different error when it calls
bbs.post_msg():
Error: line 865 js_ParseMsgHeaderObject js_msgbase.c JS_GetPrivate failed
So it seems something odd is going on if it gets a different error just by
outputting some information before calling that function. The sub-board code
looks right, and the reply mode value it's using is 64. I'm not sure what
might be wrong. My reader doesn't have a problem replying to normal messages;
this is only happening when replying to a poll message.
Nightfox
---
� Synchronet � Digital Distortion: digitaldistortionbbs.com