We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
preview.laf.run
code:
import cloud from '@lafjs/cloud'
export async function main(ctx: FunctionContext) { console.log('Hello World') var funcname = "$$admin_Agetlist" var funcnum = funcname.match(/$/g)?funcname.match(/$/g).length:0 console.log(funcnum) return funcnum }
一旦用浏览器访问一下该函数,该函数后续就会Internal Server Error ,并且后面就算改成 export async function main(ctx: FunctionContext) { return 1 } 还是Internal Server Error
The text was updated successfully, but these errors were encountered:
ref: https://stackoverflow.com/questions/39498601/unable-to-send-numbers-using-res-send-using-express-with-node
Express has this problem, which will be fixed in laf in the next release.
Sorry, something went wrong.
fix(runtime): express cannot send number directly #816 (#817)
c856fd8
fixed in #817
No branches or pull requests
Search before asking
Environment
preview.laf.run
What happened
How to reproduce
code:
import cloud from '@lafjs/cloud'
export async function main(ctx: FunctionContext) {
console.log('Hello World')
var funcname = "$$admin_Agetlist"
var funcnum = funcname.match(/$/g)?funcname.match(/$/g).length:0
console.log(funcnum)
return funcnum
}
一旦用浏览器访问一下该函数,该函数后续就会Internal Server Error ,并且后面就算改成
export async function main(ctx: FunctionContext) {
return 1
}
还是Internal Server Error
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: