astrologyjs icon indicating copy to clipboard operation
astrologyjs copied to clipboard

Doesnt appear to work any longer

Open alexwebbb opened this issue 6 years ago • 4 comments

Attempting to create a chart results in response "Unexpected token < in JSON at position 0", apparently it is returning an html document and the chart creator is not prepared for that. Seems like the REST source is compromised.

alexwebbb avatar Mar 27 '18 06:03 alexwebbb

Well I get the same error. I have tried to use the astrology.js instead of the min.js version - same error. It looks like the body object has some kind of buffer value -> line 2129 in astrology.js - return resolve(JSON.parse(body.join("")));
output: [ <Buffer 3c 68 74 6d 6c 3e 0d 0a 3c 68 65 61 64 3e 3c 74 69 74 6c 65 3e 33 30 31 20 4d 6f 76 65 64 20 50 65 72 6d 61 6e 65 6e 74 6c 79 3c 2f 74 69 74 6c 65 3e ... > ] undefined:1

And not an array as expected It would be cool if some jsEngle would help :-)

johaneyrich avatar Jun 07 '19 12:06 johaneyrich

Is this still a problem?

SerafDosSantos avatar Aug 08 '19 08:08 SerafDosSantos

Yes

PaulSeiziger avatar Sep 07 '19 22:09 PaulSeiziger

any solution???

toofaniCoder avatar Aug 20 '23 15:08 toofaniCoder