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?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s