Hi 🔒[private user], I have used GQL APIs to create space etc, it worked. I double checked the space id and then used the same key to use "create a dataset call" or generate a new api key, both failed. 😭
Hi 🔒[private user], yes, it is my first time to use datasets call
🔒[private user] here is more details: E1020 09:21:02.670706807 20330 hpack_parser.cc:1240] Error parsing metadata: error=invalid value key=content-type value=text/html; charset=UTF-8 RuntimeError: Failed to create dataset: name=test_invention_dataset, type=1 for space_id=U3BhY2U6MTc6VlYxTw== File /local_disk0/.ephemeral_nfs/envs/pythonEnv-2830652f-a328-463b-97e3-a7d82840f141/lib/python3.10/site-packages/arize/experimental/datasets/core/client.py:481, in ArizeDatasetsClient.create_dataset(self, space_id, dataset_name, dataset_type, data, convert_dict_to_json, max_chunk_size) 478 writer, metadata_reader = flight_client.do_put( 479 descriptor, tbl.schema, self.session.call_options 480 ) --> 481 with writer: 482 writer.write_table(tbl, max_chunksize=max_chunk_size) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-2830652f-a328-463b-97e3-a7d82840f141/lib/python3.10/site-packages/arize/experimental/datasets/core/client.py:481, in ArizeDatasetsClient.create_dataset(self, space_id, dataset_name, dataset_type, data, convert_dict_to_json, max_chunk_size) 478 writer, metadata_reader = flight_client.do_put( 479 descriptor, tbl.schema, self.session.call_options 480 ) --> 481 with writer: 482 writer.write_table(tbl, max_chunksize=max_chunk_size) File /databricks/python/lib/python3.10/site-packages/pyarrow/ipc.pxi:519, in pyarrow.lib._CRecordBatchWriter.__exit__() File /databricks/python/lib/python3.10/site-packages/pyarrow/_flight.pyx:1031, in pyarrow._flight.MetadataRecordBatchWriter.close() File /databricks/python/lib/python3.10/site-packages/pyarrow/_flight.pyx:80, in pyarrow._flight.check_flight_status() File /databricks/python/lib/python3.10/site-packages/pyarrow/error.pxi:121, in pyarrow.lib.check_status() ArrowNotImplementedError: Flight returned unimplemented error, with message: Received http2 header with status: 404. gRPC client debug context: {"created":"@1760952062.670756509","description":"Received http2 :status header with non-200 OK status","file":"/opt/vcpkg/buildtrees/grpc/src/85a295989c-6cf7bf442d.clean/src/core/ext/filters/http/client/http_client_filter.cc","file_line":123,"grpc_message":"Received http2 header with status: 404","grpc_status":12,"value":"404"}. Client context: OK The above exception was the direct cause of the following exception: RuntimeError Traceback (most recent call last) File <command-5347401209140717>, line 1 ----> 1 dataset_id = client.create_dataset(space_id="U3BhY2U6MTc6VlYxTw==", dataset_name = "test_invention_dataset", dataset_type=GENERATIVE, data=inventions_dataset) 2 dataset_id File /local_disk0/.ephemeral_nfs/envs/pythonEnv-2830652f-a328-463b-97e3-a7d82840f141/lib/python3.10/site-packages/arize/experimental/datasets/core/client.py:491, in ArizeDatasetsClient.create_dataset(self, space_id, dataset_name, dataset_type, data, convert_dict_to_json, max_chunk_size) 489 return str(res.dataset_id) 490 except BaseException as exc: --> 491 raise RuntimeError( 492 f"Failed to create dataset: name={dataset_name}, type={dataset_type} for space_id={space_id}" 493 ) from exc 494 finally: 495 flight_client.close()
Hi, I am trying to create a dataset with the sample code shown in the doc:https://arize.com/docs/ax/develop/datasets/how-to-datasets#create-a-dataset-with-code I have such error:
E1020 08:42:34.714773476 20330 hpack_parser.cc:1240] Error parsing metadata: error=invalid value key=content-type value=text/html; charset=UTF-8
RuntimeError: Failed to create dataset: name=test_invention_dataset, type=1 for space_id=XXXWhat am I missing? 🤔
