Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chad not connecting due to errors on code #3

Open
Kaquesad opened this issue Apr 8, 2024 · 0 comments
Open

Chad not connecting due to errors on code #3

Kaquesad opened this issue Apr 8, 2024 · 0 comments

Comments

@Kaquesad
Copy link

Kaquesad commented Apr 8, 2024

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

open Chat after addding endpoints fails with errors:

image

@Kaquesad ➜ /workspaces/contoso-web (main) $ npm run dev

[email protected] dev
next dev

▲ Next.js 14.1.4

✓ Ready in 1973ms
○ Compiling / ...
✓ Compiled / in 2.6s (900 modules)
✓ Compiled in 494ms (436 modules)
✓ Compiled /api/chat/promptflow in 377ms (468 modules)
⨯ TypeError: Cannot read properties of undefined (reading 'toString')
at /workspaces/contoso-web/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:58658
at /workspaces/contoso-web/node_modules/next/dist/server/lib/trace/tracer.js:133:36
at NoopContextManager.with (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
at ContextAPI.with (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
at NoopTracer.startActiveSpan (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)
at ProxyTracer.startActiveSpan (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)
at /workspaces/contoso-web/node_modules/next/dist/server/lib/trace/tracer.js:122:103
at NoopContextManager.with (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
at ContextAPI.with (/workspaces/contoso-web/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
at NextTracerImpl.trace (/workspaces/contoso-web/node_modules/next/dist/server/lib/trace/tracer.js:122:28)
at globalThis.fetch (/workspaces/contoso-web/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:57593)
at POST (webpack-internal:///(rsc)/./src/app/api/chat/promptflow/route.ts:13:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /workspaces/contoso-web/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:63809
at async eU.execute (/workspaces/contoso-web/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53964)
at async eU.handle (/workspaces/contoso-web/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:65062)
at async doRender (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:1317:42)
at async cacheEntry.responseCache.get.routeKind (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:1539:28)
at async DevServer.renderToResponseWithComponentsImpl (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:1447:28)
at async DevServer.renderPageComponent (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:1844:24)
at async DevServer.renderToResponseImpl (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:1882:32)
at async DevServer.pipeImpl (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:895:25)
at async NextNodeServer.handleCatchallRenderRequest (/workspaces/contoso-web/node_modules/next/dist/server/next-server.js:269:17)
at async DevServer.handleRequestImpl (/workspaces/contoso-web/node_modules/next/dist/server/base-server.js:791:17)
at async /workspaces/contoso-web/node_modules/next/dist/server/dev/next-dev-server.js:331:20
at async Span.traceAsyncFn (/workspaces/contoso-web/node_modules/next/dist/trace/trace.js:151:20)
at async DevServer.handleRequest (/workspaces/contoso-web/node_modules/next/dist/server/dev/next-dev-server.js:328:24)
at async invokeRender (/workspaces/contoso-web/node_modules/next/dist/server/lib/router-server.js:174:21)
at async handleRequest (/workspaces/contoso-web/node_modules/next/dist/server/lib/router-server.js:353:24)
at async requestHandlerImpl (/workspaces/contoso-web/node_modules/next/dist/server/lib/router-server.js:377:13)
at async Server.requestListener (/workspaces/contoso-web/node_modules/next/dist/server/lib/start-server.js:140:13)

Expected/desired behavior

for chatbot to answer and connnect properly to contoso chat environment.

OS and Version?

Windows 11

Versions

22631.3296

Mention any other details that might be useful

I have added all the required endpoints and keys to the documentation in the codespace .env file saved it re ran it updated the .Next module to the latest version same error.

Thanks! We'll be in touch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant