Problem to open access on MDC GSTLAL json file
Dear Tanner,
We made some tests to respond to fake mdc_gstlal events on gracedb-dev1 two days ago, in order to annotate gracedb with Virgo detchar. And we cannot read some json file "json.loads(stdin.read())" , the error mentionned is "ValueError: No JSON object could be decoded" The jsonfile content was as follow: {"object": {"comment": "FITS headers for <a href="/apiweb/events/M1784/files/bayestar.fits.gz,0">bayestar.fits.gz,0", "file_version": 0, "tag_names": ["sky_loc", "lvem"], "file": "https://gracedb-dev1.ligo.org/api/events/M1784/files/bayestar.html,0", "created": "2018-06-04T16:26:48.468568+00:00", "self": "https://gracedb-dev1.ligo.org/api/events/M1784/log/26", "issuer": "emfollow", "filename": "bayestar.html", "tags": "https://gracedb-dev1.ligo.org/api/events/M1784/log/26/tag/", "N": 26}, "uid": "M1784", "labels": [], "alert_type": "update", "file": "bayestar.html", "description": "UPLOAD: 'bayestar.html' FITS headers for <a href="/apiweb/events/M1784/files/bayestar.fits.gz,0">bayestar.fits.gz,0"}
Below, you can find the script of the codes https://websvn.ego-gw.it/filedetails.php?repname=advsw&path=%2FVirgoDQR%2Ftrunk%2Flvalert%2Falert_pipeline.py
start_lvalert.sh
#command used to run interactively
lvalert_listen --server lvalert-test.cgca.uwm.edu --config-file=parameters/lvconfig.ini --username nicolas.leroy --netrc /data/procdata/detchar/virgo_alerts/.netrc --dont-wait
alert_pipeline.py
#!/bin/env python
import json
from sys import stdin
import numpy as np
from ligo.gracedb.rest import GraceDb, GraceDbBasic, HTTPError
import logging
import ligo.gracedb.rest
import ligo.gracedb.logging
import subprocess
import os
import time
from gwpy.time import
if __name__ == '__main__':
gracedb = GraceDb(TEST_SERVICE)
message_gracedb = json.loads(stdin.read())
NEW_EVENT(message_gracedb)