`web-ghc` fails to compile Haskell programs that use non-ANSI characters
palas opened this issue · comments
Pablo Lamela commented
Is there an existing issue for this?
- I have searched the existing issues
Summary
web-ghc
endpoint returns 500 error when provided with a Haskell program that uses non-ANSI characters
Steps to reproduce the behavior
- Open https://playground.plutus.iohkdev.io/
- Load Starter example
- Modify the first comment to have a non-ANSI character.
-- Thís is a starter contract, based on the Game contract,
Note the accent in Thís
4. Click compile button
Actual Result
FailureResponse (Request {requestPath = (BaseUrl {baseUrlScheme = Http, baseUrlHost = "web-ghc-plutus-apps-prod.plutus.aws.iohkdev.io", baseUrlPort = 80, baseUrlPath = ""},"/runghc"), requestQueryString = fromList [], requestBody = Just ((),application/json;charset=utf-8), requestAccept = fromList [application/json;charset=utf-8,application/json], requestHeaders = fromList []), requestHttpVersion = HTTP/1.1, requestMethod = "POST"} (Response {responseStatusCode = Status {statusCode = 500, statusMessage = "Internal Server Error"}, responseHeaders = fromList [("Content-Type","text/plain; charset=utf-8"),("Date","Thu, 09 Dec 2021 16:11:09 GMT"),("Server","Warp/3.3.17"),("Transfer-Encoding","chunked")], responseHttpVersion = HTTP/1.1, responseBody = "Something went wrong"})
Expected Result
Compilation successful
What have you tried to resolve this issue?
The same exact code without the accent in the i
compiles fine
Checked our docs?
- Yes, I have looked in the the readme, plutus docs, and technical report for help on this issue.
Checked Stack Exchange?
- Yes, I have searched Stack Exchange for this issue and it doesn't exist.
- I have considered raising this issue in Stack Exchange.
System info
OS: Arch Linux (5.15.5-arch1-1 - x86_64)
Browser: Chrome Version 95.0.4638.69 (Official Build) (64-bit)
Screenshots and attachments
Skylar-Ray O'Quinn commented
Hey @palas thanks for the issue, we will investigate this and I will let you know what transpires.
Skylar-Ray O'Quinn commented
evgenii akentev commented
Thanks for reporting this!
Unfortunately, we are closing this issue as the plutus playground is no longer maintained by IOG. Thus, it was deleted from the plutus-apps repository.