Is it possible to call the API from another space from within a space I created

I have an space A that inside of it calls space b. Both are mine and both are private. From space A I call the API of space B. When running space A locally it works correctly, it calls space B with no problem. But when I uploaded it to Hugging face it displays this error:

raise ValueError(f"Unsupported protocol: {self.protocol}")
ValueError: Unsupported protocol: sse_v3

makes me beleive I cant call an space from within a space. Any solution? Am I doing something wrong?