the server at electronics.local can’t be found because the DNS look-up failed

So you are all set up with hybris to jump in and create your first order, but encounter above error.

The URL looks like,

https://electronics.local:9002/acceleratorservices/sop-mock/process

And stuck.

Actually whats happening is, the mock payments providers doesn’t support the URLs with IPs, they want to have a DNS attached to it. If you see carefully, it is looking to resolve electronics.local. But since we are doing local development, we dont have a DNS server, which can resolve the URL to it’s internet address.

So we have to map this URL to an IP. This is done in host file.

Open notepad with administrator rights and add below entry.

127.0.0.1          electronics.local

Now the URL will resolve to proper IP and You can do payment even in local.

 

What do you think?