railslove/epics

Undefined namespace prefix: .//ds:Modulus

Closed this issue · 5 comments

Hi,

I have generated the INI letter, sent it to the bank and bank has confirmed account is activated.
I am now trying the next step.

giving the correct details in the parameters below
e = Epics::Client.new(File.open('/tmp/my.key'), 'passphrase', 'url', 'host', 'user', 'partner')
e.HPB

but it is failing with following error at e.HPB
Nokogiri::XML::XPath::SyntaxError
Undefined namespace prefix: .//ds:Modulus

glad to hear that the ini now worked.

could you provide the complete backtrace as gist? i suppose it happens here:

modulus = Base64.decode64(node.at_xpath(".//ds:Modulus").content)
correct?

i'd be helpful if you could then also provide the result of e.send(:download, Epics::HPB) these are the public parts of the bank keys

Yes it seems to fail here only

modulus = Base64.decode64(node.at_xpath(".//ds:Modulus").content)

link to gist is
https://gist.github.com/manoveg/f5b6f1c373fec169b82b

just pushed a fix to master which will address this issue. could you please try if the issue is solved?

Thanks . It works now.
I can get the records using puts e.STA('2014-09-01', '2014-09-11')

closed via a0975ec