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

ProxyScriptingJsFuncHelper CreateJsObjectLiteral missing comma at end of string (when multiple parameters) #7031

Closed
FrancoisKr opened this issue Jan 5, 2021 · 0 comments
Assignees
Milestone

Comments

@FrancoisKr
Copy link

ABP V4
MVC
EF Core

In case of multiple header parameters in a controller, the service proxy script generator fails.

public async Task ActionExampleAsync([FromHeader] string mystr1, [FromHeader] string mystr2, [FromBody] List<MinimizedList> minimizedList)

JS error: ServiceProxyScript:517 Uncaught SyntaxError: Unexpected string

Due to missing comma:
headers: {
'mystr1': mystr1
'mystr2': mystr2
},

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

Successfully merging a pull request may close this issue.

2 participants