That sounds like it’s failing to load/get a response and the server doesn’t/hasn’t sent anything back yet and will timeout after a bit.
Without an error not much I can help you with.
So, skip the example and just get on with building your extension, don’t get hung up getting the example going when you can just start with your actual extension.