Not sure if you are downloading books from your library or buying them, I had problems with the same error and did the following with success.
1. Erase your pc authorization in the help menu of Digital Editions.
2. Log into your library account and select a book to download, the same error should come up, when prompted authorize your pc from this page and you should have solved the problem?
This worked for me, good luck.