Http.agenturl(); returns Null

server.log("Agent URL is : ");
server.log(http.agenturl());

2021-09-15T01:52:30.845 +00:00 [Agent] Agent URL is :

Also, in the develop UI, I get Agent: nulllE_********* (Online) – Note the preceding Null. I don’t believe I control the agent’s URL.
Also, https://agent.electricimp.com/IE_****** works – just the null is killing me.

Any help is appreciated.