Hi,
I am using the example from https://arrow.apache.org/docs/js/ to load a
file from a URL in Chrome

const table = await tableFromIPC(fetch("/simple.arrow"));

but get
uncaught (in promise) Error: Unrecognized type: "undefined" (24)
    at tk (apache-arrow:287:260)
    at U.fk [as decode] (apache-arrow:283:430)
    at S.hk [as decode] (apache-arrow:281:236)
    at Fh.decode (apache-arrow:197:110)
    at Zk.Wa (apache-arrow:313:501)
    at Zk.open (apache-arrow:312:317)
    at Zk.pa (apache-arrow:314:6)
    at Zk.next (apache-arrow:308:122)
    at Rk.readAll (apache-arrow:303:117)
    at Dl (apache-arrow:349:635)

If I download the file manually, and open using pyarrow it loads correctly.

with pa.OSFile('Downloads/small.arrow', 'rb') as source:
   loaded_array = pa.ipc.open_file(source).read_all()

The documentation is unclear on how to debug this, any help would
be appreciated.
Thanks

Reply via email to