Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Protocol field is empty


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 21, 2017 11:22 AM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
Frank Yingst

Posts: 175
Registered: 1/19/05
Protocol field is empty  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 20, 2017 1:17 AM
I get the error message when attempting to execute a rest request. I don't see any property called Protocol, so what is it?
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Protocol field is empty
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 20, 2017 1:44 AM   in response to: Frank Yingst in response to: Frank Yingst
Frank Yingst wrote:

I get the error message when attempting to execute a rest request. I don't see any property called Protocol, so what
is it?

It probably means the BaseURL property in the TRESTClient is missing the http: part. This seems odd though, since it
should attempt to add it if it is missing. I suggest examining the BaseURL property anyway. Also, you can find out this
kind of thing yourself by debugging the app, examining the call stack when the error occurs, and checking each part of
the source for the reason why it arrived at the error.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Protocol field is empty  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 21, 2017 11:22 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:

It probably means the BaseURL property in the TRESTClient is missing
the http: part. This seems odd though, since it should attempt to add
it if it is missing.

You are assuming Frank is using Embarcadero's REST components, and not
some other REST/HTTP library.

Frank, what are you actually using? Please show the actual code that
is failing for you.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02