forcetk in VisualForce Page - it works fine (below is the code).

```
forcetkClient = new forcetk.Client();
forcetkClient.setSessionToken('{!$Api.Session_ID}');
forcetkClient.apexrest('/rest-api/get', function (data, status, xhr) {
                data = JSON.parse(data);
                // ...
            }, function (xhr, textStatus) {
                console.log(xhr, "Request failed: ", textStatus);
            }, 'GET', params);

```

Now I'm trying to do the same in lightning:container html page ... but I'm not sure how to get the Api.Session\_ID - and then I found this: getRESTAPISessionKey (link - <https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/container_npm_getrestapisessionkey.htm>).

The above code works fine in VF page, but the same in lightning:container (with getRESTAPISessionKey) is giving the below error:

> 
> HTTP ERROR 400 Problem accessing /services/proxy. Reason:
> 
> 
> 
> ```
> Unable to forward request due to: Stream closed
> 
> ```
> 
> 

Any suggestions/corrections to make it work in the lightning:container??

Thanks