You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ns = "frtestrelay.servicebus.windows.net"; // fully qualified relay namespace
var path = "test";
var keyrule = "all"; // name of a SAS rule
var key = ""; // key of the SAS rule
const express = require('express');
var app = express();
var uri = https.createRelayListenUri(ns, path);
var server = https.createRelayedServer(
{
server : uri,
token : () => https.createRelayToken(uri, keyrule, key)
},
app
);
app.get('/my', function (req, res) {
console.log('received');
res.status(200).send('hey');
});
server.listen();
Actual Behavior
Calling the endpoint(GET frtestrelay.servicebus.windows.net/test/my) fails with error:
<title>Error</title>
Cannot GET /test/my
Expected Behavior
Server should receive the request
Versions
OS platform and version:
Windows 10 18363.778
Node Version:
v10.16.3
NPM package version or commit ID:
Express Version: express@4.17.1
hyco-https version: hyco-https@1.4.4
The text was updated successfully, but these errors were encountered:
Sample code:
var ns = "frtestrelay.servicebus.windows.net"; // fully qualified relay namespace
var path = "test";
var keyrule = "all"; // name of a SAS rule
var key = ""; // key of the SAS rule
const http = require('http');
const https = require('hyco-https');
http.ServerResponse = https.ServerResponse;
const express = require('express');
var app = express();
var uri = https.createRelayListenUri(ns, path);
var server = https.createRelayedServer(
{
server : uri,
token : () => https.createRelayToken(uri, keyrule, key)
},
app
);
app.get('/my', function (req, res) {
console.log('received');
res.status(200).send('hey');
});
server.listen();
Actual Behavior
Expected Behavior
Versions
Windows 10 18363.778
v10.16.3
Express Version: express@4.17.1
hyco-https version: hyco-https@1.4.4
The text was updated successfully, but these errors were encountered: