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

Routes that return files error occurs #9

Open
fernandocristan opened this issue Jun 21, 2024 · 2 comments
Open

Routes that return files error occurs #9

fernandocristan opened this issue Jun 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fernandocristan
Copy link

fernandocristan commented Jun 21, 2024

In routes where a file is returned using the result file action, an error occurs and the file is not returned

Controller response

    //getFile
	return File(file.Content, file.ContentType, file.FileName);

Error

Unexpected character encountered while parsing value: %. Path '', line 0, position 0

Source code error:

Treblle.Net.Core.TrebllePayloadFactory.CreateAsync(HttpContext httpContext, Stream response, Int64 elapsedMilliseconds, Exception exception)
@cindreta cindreta added the bug Something isn't working label Jun 23, 2024
@cindreta
Copy link
Member

Hey @fernandocristan Thx for reporting this! @m-jovanovic will take a look at this and I'm sure figure it out in no time.

Could uou provide you .NET version and SDK version. Thx

@fernandocristan
Copy link
Author

Sure, here it is

  • .NET: 6.0
  • SDK: 1.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants