cloudflare / cloudflare/workerd
mssql package doesn't work
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
Example code:
```
import sql from 'mssql';
export default {
async fetch(request, env, ctx): Promise {
const config = {}
const conn = await sql.connect(config);
const rows = await conn.request().query('select * from SYSOBJECTS')
// Return the result as JSON
const resp = new Response(JSON.stringify(rows), {
headers: { "Content-Type": "application/json" },
});
return resp;
},
} satisfies ExportedHandler;
```
```
✘ [ERROR] service core:user:workers-mysql-testing: Uncaught TypeError: Cannot read properties of undefined (reading 'hash')
at null. (index.js:31924:34) in
node_modules/.pnpm/@azure+identity@4.9.0/node_modules/@azure/identity/dist/browser/msal/browserFlows/msalBrowserCommon.js
at null. (index.js:9:56) in __init
at null. (index.js:31941:5) in
node_modules/.pnpm/@azure+identity@4.9.0/node_modules/@azure/identity/dist/browser/credentials/interactiveBrowserCredential.js
at null. (index.js:9:56) in __init
at null. (index.js:32438:5) in
node_modules/.pnpm/@azure+identity@4.9.0/node_modules/@azure/identity/dist/browser/index.js
at null. (index.js:9:56) in __init
at null. (index.js:64358:22) in
node_modules/.pnpm/tedious@18.6.1/node_modules/tedious/lib/connection.js
at null. (index.js:12:50) in __require
at null. (index.js:66923:46) in
node_modules/.pnpm/tedious@18.6.1/node_modules/tedious/lib/tedious.js
at null. (index.js:12:50) in __require
```
Contributor guide
Assessment
This issue has not been assessed yet.