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

Deploy no Android #126

Closed
ti-muller opened this issue Feb 13, 2023 · 1 comment
Closed

Deploy no Android #126

ti-muller opened this issue Feb 13, 2023 · 1 comment

Comments

@ti-muller
Copy link

boa tarde Vinícius

Estou testando a biblioteca, porém quando faço os teste executando pelo Delphi tudo ok, porém ao fazer o deploy no celular a aplicação não encontra o endpoint retorno erro 404.

LResponse := TRequest.New.BaseURL(DMConexao.vsHost_App + '/usuarios/login/')
.AddUrlSegment('login', Edit_Usuario.Text) // Path Variables
.TokenBearer(DMConexao.Get_Token)
.ContentType('application/json')
.AddBody(json.ToJSON)
.DataSetAdapter(MemTable_1)
.Accept('application/json')
.Get;

@viniciussanchez
Copy link
Owner

Imagino que seja porque você está passando um Body no GET. Algumas versões do Delphi bloqueia isso. E não é o correto mesmo, embora seja possível. Experimente trocar para o POST (terá que ajustar a API também), ou então usar a diretiva de compilação do INDY por exemplo, RR4D_INDY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants