Hi I am trying to receive a stream from a project in Speckle and sending it to another project using SpecklePy Jupyter. I can recieve the object successfully but cant send it to another project. I get a HTTPError: 401 Client Error: Unauthorized for url:
Here is my code :
# Define global variables
HOST = "https://latest.speckle.systems/"
AUTHENTICATION_TOKEN = "MY_TOKEN"
STREAM_ID = "RECIEVE_ID"
# Setting up SpeckleClient and authenticating
client = SpeckleClient(host=HOST)
client.authenticate_with_token(token=AUTHENTICATION_TOKEN)
# Receving commit
transport = ServerTransport(STREAM_ID, client)
model_data = operations.receive (obj_id= "Obj_ID ",remote_transport=transport)
# Define the destination stream ID
destination_stream_id = "STREAM_ID"
# Set up the transport for the destination stream
transport_sender = ServerTransport(client=client, stream_id=destination_stream_id)
# Send the object to the Speckle server
hash = operations.send(base=model_data, transports=[transport_sender])
I generated the access token with all the permissions. The Authentication seems to be working as I can receive the objects successfully. But Unfortunately when I send it gives me the error @Jedd