TypeError: Request path contains unescaped characters

Do you mean that you continue to get the error?
Does it appear each time the inject node triggers?
Did you realise that there is no output wire on the weathermap node?

By the way, I advise against using an object property called msg, it will cause confusion (to people, not to node-red).