I have a one request in the application via HttpJob was working normally after having installed a digital certificate on my website, started the error returns:
B4X:
org.json.JSONException: End of input at character 0 of
THIS is the page your app is requesting. Note that the sql query does not return a value.
The Server response is empty so the jsonparser crashes.
B4X:
Sub buscaIdComprador
Dim Cursor1 As Cursor
Cursor1 = SQL1.ExecQuery("SELECT id_perfil FROM config")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
id_perfil = Cursor1.GetString("id_perfil")
Next
Cursor1.Close
Log("ID:"&id_perfil)
Dim dados_perfil As HttpJob
dados_perfil.Initialize("dados_perfil", Me)
dados_perfil.PostString(servridor &"cadastro.php?acao=3", "id_perfil="& id_perfil)
End Sub
THIS is the page your app is requesting. Note that the sql query does not return a value.
The Server response is empty so the jsonparser crashes.
B4X:
Sub buscaIdComprador
Dim Cursor1 As Cursor
Cursor1 = SQL1.ExecQuery("SELECT id_perfil FROM config")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
id_perfil = Cursor1.GetString("id_perfil")
Next
Cursor1.Close
Log("ID:"&id_perfil)
Dim dados_perfil As HttpJob
dados_perfil.Initialize("dados_perfil", Me)
dados_perfil.PostString(servridor &"cadastro.php?acao=3", "id_perfil="& id_perfil)
End Sub
I have a one request in the application via HttpJob was working normally after having installed a digital certificate on my website, started the error returns:
B4X:
org.json.JSONException: End of input at character 0 of
Did you make your site SSL only (without redirecting HTTP)? If so you may need to change these
B4X:
Dim servridor As String: servridor = "http://ijavendi.com.br/aplicativo/"
Dim servridor_imagem As String: servridor_imagem = "http://ijavendi.com.br/admin/imagens-carro/"
The problem is not in B4A!
Call the url with a browser. You´ll see that you´ll get NO RESULT.
So, trying to parse this result as a JSON file causes the crash