microsoft / microsoft/typespec
[Bug]: http-server-javascript emitter crash
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
### Describe the bug
Emitter "@typespec/http-server-javascript" crashed! This is a bug.
Please file an issue at https://github.com/microsoft/typespec/issues
Error: Unimplemented: dynamic request content type
at emitRawServerOperation (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/http-server-javascript/dist/src/http/server/index.js:103:19)
at emitRawServerOperation.next ()
at emitRawServer (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/http-server-javascript/dist/src/http/server/index.js:35:47)
at emitHttp (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/http-server-javascript/dist/src/http/index.js:32:29)
at Object.$onEmit [as emitFunction] (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/http-server-javascript/dist/src/index.js:65:11)
at async runEmitter (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/compiler/dist/src/core/program.js:367:13)
at async compile (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/compiler/dist/src/core/program.js:119:9)
at async compileOnce (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js:36:25)
at async compileAction (file:///C:/Users/marioguerra/Work/typespec101-js-server-test/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js:19:9)
### Reproduction
Repo project:
https://microsoft-my.sharepoint.com/:f:/p/marioguerra/EupR_6jf7FlKqmKtt6y0TK8BZatlFciDdCml-uHhZfOzSw?e=RycfEU
### Checklist
- [x] Follow our [Code of Conduct](https://github.com/microsoft/typespec/blob/main/CODE_OF_CONDUCT.md)
- [x] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Microsoft/typespec/discussions).
- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Contributor guide
Assessment
This issue has not been assessed yet.