microsoft / dev-tunnels

Dev Tunnels SDK
MIT License
286 stars 20 forks source link

GRPC over dev tunnels #463

Closed Dzivo closed 1 month ago

Dzivo commented 2 months ago

Is it possible that this error is connected to dev tunnels ? Is grpc supported over tunnels ?

Error: 12 UNIMPLEMENTED: Received HTTP status code 404 
    at callErrorFromStatus (/usr/src/app/node_modules/@grpc/grpc-js/build/src/call.js:31:19)

This is from grpc package where the error is thrown

/**
 * Construct a ServiceError from a StatusObject. This function exists primarily
 * as an attempt to make the error stack trace clearly communicate that the
 * error is not necessarily a problem in gRPC itself.
 * @param status
 */
function callErrorFromStatus(status, callerStack) {
    const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`;
    const error = new Error(message);
    const stack = `${error.stack}\nfor call at\n${callerStack}`;
    return Object.assign(new Error(message), status, { stack });
}
Dzivo commented 1 month ago

It might be duplicate of #263 or at least connected

derekbekoe commented 1 month ago

Closing this in favor of https://github.com/microsoft/dev-tunnels/issues/263 as they appear to be the same underlying issue.