NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

The website didn't return a valid json response.
Started by PanetiX

PanetiX

PanetiX

Member
Joined
04 Sep 2021
Last Seen
26 Mar 2024
Topics
1
Posts
2

Hey, i get this error on console:

[11:47:38] [Craft Scheduler Thread - 216 - NamelessMC/WARN]: [NamelessMC] The website didn't return a valid json response. Run /nlpl last_error to retrieve the full stack trace.
[11:48:33] [Server thread/INFO]: PanetiX issued server command: /nlpl last_error
[11:48:33] [Server thread/WARN]: [NamelessMC] com.namelessmc.plugin.lib.nameless-api.exception.NamelessException: Website returned invalid response with code 200.
Website response, after 167ms:
-----------------
Invalid json /var/www/vhosts/httpdocs/modules/Forms/language/pt_BR.json in /var/www/vhosts/httpdocs/vendor/samerton/i18next/src/i18next.php on line 189
#0 /var/www/vhosts/httpdocs/vendor/samerton/i18next/src/i18next.php(63): samerton\i18next\i18next->loadTranslation()
#1 /var/www/vhosts/httpdocs/core/classes/Core/Language.php(206): samerton\i18next\i18next->__construct()
#2 /var/www/vhosts/httpdocs/modules/Forms/init.php(13): Language->__construct()
#3 /var/www/vhosts/httpdocs/core/init.php(443): require('...')
#4 /var/www/vhosts/httpdocs/index.php(85): require('...')
#5 {main}

	at Nameless-Plugin-Paper-3.2.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.makeConnection(RequestHandler.java:208)
	at Nameless-Plugin-Paper-3.2.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.post(RequestHandler.java:59)
	at Nameless-Plugin-Paper-3.2.0.jar//com.namelessmc.plugin.lib.nameless-api.NamelessAPI.submitServerInfo(NamelessAPI.java:88)
	at Nameless-Plugin-Paper-3.2.0.jar//com.namelessmc.plugin.common.AbstractDataSender.lambda$run$3(AbstractDataSender.java:158)
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
	at com.google.gson.JsonParser.parseReader(JsonParser.java:66)
	at com.google.gson.JsonParser.parseString(JsonParser.java:47)
	at Nameless-Plugin-Paper-3.2.0.jar//com.namelessmc.plugin.lib.nameless-api.RequestHandler.makeConnection(RequestHandler.java:176)
	... 9 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
	at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1562)
	at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1403)
	at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:541)
	at com.google.gson.stream.JsonReader.peek(JsonReader.java:424)
	at com.google.gson.JsonParser.parseReader(JsonParser.java:61)
	... 11 more

 

What i need to fix that?

PanetiX · over 2 years ago · Last edited: over 2 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

Hi,

It looks like the language file for the Forms module's pt_BR translation is invalid which is causing the website to break. You can revert this back to the original version provided by the Forms module, or amend the JSON syntax error if you can find it.

Samerton · over 2 years ago
PanetiX

PanetiX

Member
Joined
04 Sep 2021
Last Seen
26 Mar 2024
Topics
1
Posts
2

I made no changes at the pt_BR translation. I only use de_DE language.

 

{
    "forms\/action": "Ação",
    "forms\/actions": "Ações",
    "forms\/anonymous": "Anonymous",
    "forms\/barrier": "Linha divisória",
    "forms\/can_delete_submissions": "Can delete submissions",
    "forms\/can_post_submission": "Can post submission",
    "forms\/can_view_own_submission": "Can view own submission",
    "forms\/can_view_submissions": "Can view submissions",
    "forms\/change_status_on_comment": "Change status when user is commenting?",
    "forms\/checkbox": "Checkbox",
    "forms\/comment": "Comment",
    "forms\/comment_maximum": "The comment must be a maximum of 10000 characters.",
    "forms\/comment_minimum": "The comment must be a minimum of 3 characters.",
    "forms\/confirm_delete_comment": "Tem certeza que deseja deletar este comentário?",
    "forms\/confirm_delete_field": "Tem certeza que quer excluir esse campo?",
    "forms\/confirm_delete_submisssion": "Tem certeza de que deseja excluir este envio?",
    "forms\/creating_new_form": "Criando Novo Formulário",
    "forms\/creating_status": "Criando novo estado",
    "forms\/current_status": "Estado atual",
    "forms\/current_status_x": "Estado atual: {{status}}",
    "forms\/current_version_x": "Versão atual do módulo: {{version}}",
    "forms\/choose_picture": "Choose picture",
    "forms\/delete_field": "Tem certeza que quer excluir esse campo?",
    "forms\/delete_form": "Tem certeza que quer excluir esse formulário?<\/br>Aviso: Todos os dados que pertencem a esse formulário serão deletados, como perguntas e envios",
    "forms\/delete_status": "Tem certeza que quer excluir esse estado?",
    "forms\/delete_submissions_or_comments": "Excluir envios ou comentários",
    "forms\/editing_field_for_x": "Editando campo para {{form}}",
    "forms\/editing_status": "Editando estado",
    "forms\/editing_x": "Editando {{form}}",
    "forms\/enable_captcha": "Habilitar o Captcha nesse formulário?",
    "forms\/field": "Campo",
    "forms\/field_created_successfully": "Campo criado com sucesso",
    "forms\/field_deleted_successfully": "Campo excluído com sucesso",
    "forms\/field_name": "Nome do Campo",
    "forms\/field_name_maximum": "O nome do campo deve ser de no máximo 255 caracteres.",
    "forms\/field_name_minimum": "O nome do campo deve ser de no mínimo 2 caracteres.",
    "forms\/field_order": "Ordem do Campo",
    "forms\/field_updated_successfully": "Campo atualizado com sucesso",
    "forms\/fields": "Campos",
    "forms\/file": "File (Pictures)",
    "forms\/form": "Formulário",
    "forms\/form_created_successfully": "Formulário criado com sucesso.",
    "forms\/form_deleted_successfully": "Formulário excluído com sucesso.",
    "forms\/form_icon": "Ícone do Formulário",
    "forms\/form_icon_maximum": "O ícone do formulário deve ser de no máximo 64 caracteres.",
    "forms\/form_name": "Nome do Formulário",
    "forms\/form_name_maximum": "O nome do formulário deve ser de no máximo 32 caracteres.",
    "forms\/form_name_minimum": "O nome do formulário deve ser de no mínimo 2 caracteres.",
    "forms\/form_submitted": "Formulário enviado com sucesso",
    "forms\/form_updated_successfully": "Formulário atualizado com sucesso.",
    "forms\/form_url": "URL do Formulário (com a \/ na frente, ex.: \/exemplo)",
    "forms\/form_url_maximum": "O URL do formulário deve ser de no máximo 32 caracteres.",
    "forms\/form_url_minimum": "O URL do formulário deve ser de no mínimo 2 caracteres.",
    "forms\/form_url_slash": "Form URL must begin with a \/",
    "forms\/form_x": "Formulário: {{form}}",
    "forms\/forms": "Formulários",
    "forms\/forms_manage": "StaffCP » Formulários » Formulários",
    "forms\/forms_view_submissions": "StaffCP » Formulários » Envios",
    "forms\/guest": "Visitante",
    "forms\/help_box": "Texto de ajuda",
    "forms\/id_or_username": "ID or Username",
    "forms\/input_field_name": "Por favor insira o nome do campo.",
    "forms\/input_form_name": "Por favor insira o nome do formulário.",
    "forms\/input_form_url": "Por favor insira o URL do formulário.",
    "forms\/last_updated": "Última modificação:",
    "forms\/link_location": "Local do Link",
    "forms\/marked_as_open": "Significa estado aberto",
    "forms\/maximum_characters": "Maximum Characters (0 to disable)",
    "forms\/minimum_characters": "Minimum Characters (0 to disable)",
    "forms\/new_field": "Novo Campo",
    "forms\/new_field_for_x": "Criando novo campo para {{form}}",
    "forms\/new_form": "Novo Formulário",
    "forms\/new_form_submission": "Envio de novo formulário",
    "forms\/new_status": "Novo Estado",
    "forms\/new_submission_text": "Novo envio criado em {{form}} por {{user}}",
    "forms\/new_update_available_x": "Há uma nova atualização disponível para o módulo {{module}}",
    "forms\/new_urgent_update_available_x": "Há uma nova atualização urgente disponível para o módulo {{module}}. Por favor, atualize o mais rápido possível!",
    "forms\/new_version_x": "Nova versão do módulo: {{new_version}}",
    "forms\/no_closed_submissions": "Não há nenhum envio fechado ainda.",
    "forms\/no_comment": "No comment",
    "forms\/no_open_submissions": "Não há nenhum envio aberto ainda.",
    "forms\/none_fields_defined": "Não há nenhum campo ainda.",
    "forms\/none_forms_defined": "Não há nenhum formulário ainda.",
    "forms\/number": "Número",
    "forms\/options": "Opções",
    "forms\/options_help": "Cada opção em uma nova linha; a linha pode ser deixada em branco (só pra opções). O texto de ajuda também deve ser colocado neste campo",
    "forms\/radio": "Radio",
    "forms\/select_statuses_to_form": "Select statuses to be used on this form",
    "forms\/send_notify_email": "Send notify email (Will add submit slowness)",
    "forms\/show_navigation_link_for_guest": "Show navigation link for guest and ask they to login if them don't have post permission",
    "forms\/sort": "Ordenar",
    "forms\/status": "Estado",
    "forms\/status_creation_error": "Erro ao criar um estado. Por favor certifique-se que o HTML do estado não é maior que 1.024 caracteres.",
    "forms\/status_creation_success": "Estado criado com sucesso.",
    "forms\/status_deleted_successfully": "Estado excluído com sucesso.",
    "forms\/status_edit_success": "Estado editado com sucesso.",
    "forms\/status_forms": "Selecione os formulários nos quais esse estado será exibido.",
    "forms\/status_groups": "Selecione os grupos que têm permissão para selecionar este estado.",
    "forms\/status_html": "HTML do Estado",
    "forms\/status_name": "Nome do Estado",
    "forms\/statuses": "Estados",
    "forms\/submission_updated": "Envios atualizados com sucesso",
    "forms\/submission_updated_message": "There has been an update regarding your submission for {{form}}.",
    "forms\/submission_updated_subject": "Your {{form}} submission has been updated",
    "forms\/submissions": "Envios",
    "forms\/submit_as_anonymous": "Submit as anonymous",
    "forms\/updated_by": "Modificado por",
    "forms\/updated_form_submission": "Novo comentário de envio do formulário",
    "forms\/updated_form_submission_staff": "New form submission comment from staff",
    "forms\/updated_submission_status": "Status changed from {{status}} to {{new_status}}",
    "forms\/updated_submission_text": "Novo comentário de envio em {{form}} por {{user}}",
    "forms\/user": "Usuário",
    "forms\/view_resource": "Ver Recurso",
    "forms\/x_field_maximum_y": "{{field}} must be a maximum of {{max}} characters.",
    "forms\/x_field_minimum_y": "{{field}} must be a minimum of {{min}} characters.",
    "forms\/your_submission_updated": "Seu envio foi atualizado"
}
PanetiX · over 2 years ago · Last edited: over 2 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

Very strange, the JSON looks fine to me.

Are you able to browse your website normally, or do you see an error on there too?

Also, do you still get errors with the plugin or did this just happen once?

Samerton · over 2 years ago · Last edited: over 2 years ago