whoiskatrin / sql-translator

SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.
https://www.sqltranslate.app/
MIT License
4.19k stars 358 forks source link

I have found an issue that the button does not respond after adding a scheme. #55

Closed wuliqq closed 1 year ago

wuliqq commented 1 year ago

I have found an issue that the button does not respond after adding a scheme.

When I click the button[Generate SQL], the page does not respond.

image
whoiskatrin commented 1 year ago

@wuliqq provide please all the input data. any errors in the console?

saaagarsingh commented 1 year ago

Hey @whoiskatrin if you can explain me more about the issue here then I would love to resolve it. Right now it not much of understandable what exactly the issue is.

wuliqq commented 1 year ago

@wuliqq provide please all the input data. any errors in the console?

I have identified the issue. When I add an extra newline character at the end of the scheme content, it causes the page to crash. However, when I remove the newline character, the issue disappears.

wuliqq commented 1 year ago

@wuliqq provide please all the input data. any errors in the console?

But I don't know why. I also tried https://www.sqltranslate.app/ and the same issue occurred.