# \[F\] Discogs - Error \>\> 401 : UNAUTHORIZED

**URL:** https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [March 17, 2016, 9:44am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761 "2016-03-17T09:44:42Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Akhlan](https://community.mp3tag.de/user_avatar/community.mp3tag.de/akhlan/32/9478_2.png) [@Akhlan](https://community.mp3tag.de/u/Akhlan)
#### Post date: [March 17, 2016, 9:44am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/1 "2016-03-17T09:44:42Z")

</div>

Hi,

since one or two week, I have this error message when I want used discogs to tag my files...

![](http://img15.hostingpics.net/pics/412024Capturedcran20160317114034.png)

I have change my C:\Users\xxxxxx\AppData\Roaming\Mp3tag\data\sources\discogs.src woth this

#[Encoding]=url-utf-8  
[Encoding]=utf-8

but nothing best....

I used discogs.src [2016-01-31] v1.03

How resolve this issue ?

Rgds  
akhlan

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 17, 2016, 9:47am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/2 "2016-03-17T09:47:29Z")

</div>

Have you checked this report from just a month ago?

[/t/17660/1](https://community.mp3tag.de/t/17660/1)

---

<div class="post-metadata">

### Author: ![syldub](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@syldub](https://community.mp3tag.de/u/syldub)
#### Post date: [March 18, 2016, 9:46pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/3 "2016-03-18T21:46:40Z")

</div>

I also get the 401 error since few days. I spent more than 3 hours today to try to fix it, but failed.

* * *

## Mp3tag v2.75

Error connecting to server: [www.discogs.com](http://www.discogs.com)

## » 401: UNAUTHORIZED

## Retry Cancel

This is a nightmare.

---

<div class="post-metadata">

### Author: ![Rephlex](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rephlex/32/315_2.png) [@Rephlex](https://community.mp3tag.de/u/Rephlex)
#### Post date: [March 19, 2016, 7:04am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/4 "2016-03-19T07:04:01Z")

</div>

Getting the same error here.  
Unable to search with the Pone or standard scripts.  
All worked fine till last week.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 19, 2016, 8:50am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/5 "2016-03-19T08:50:03Z")

</div>

Hey all,

thanks for the error reports. This is what happened:

1. Discogs changed the API access to be HTTPS-only on March 14. Please see the corresponding [announcement](https://www.discogs.com/de/forum/thread/347984#7056344) on the Discogs API Forums. This implies, that all Discogs Tag Sources now need to use HTTPS, i.e., [https://api.discogs.com](https://api.discogs.com). I've updated the official Discogs Tag Source that ships with Mp3tag to use HTTPS (see the release notes for v2.74). Other Tag Sources that are published via the forums need to be updated by their corresponding authors/developers.
2. The Discogs servers use [TLS 1.2](https://en.wikipedia.org/wiki/Transport_Layer_Security#TLS_1.2) for SSL connections, which is unfortunately not available on Windows XP. It seems, that people who use Mp3tag under Windows XP cannot access the Discogs API as of March 14, 2016.

 Please let me know whether you can confirm that you use Mp3tag v2.75, updated the tag source to use HTTPS instead of HTTP and use Windows XP?

Kind regards  
Florian

---

<div class="post-metadata">

### Author: ![Rephlex](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rephlex/32/315_2.png) [@Rephlex](https://community.mp3tag.de/u/Rephlex)
#### Post date: [March 19, 2016, 9:43am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/6 "2016-03-19T09:43:03Z")

</div>

Hi Florian!

Thanks for the reply. I'm using version 2.75 of Mp3Tag & Windows 10.

The original Discogs search seems to work [discogs.src], so will use that for now.  
Couldn't update the Pone ones as they haven't been updated since 2014 [bummer!].  
Hopefully Pone will be fixed someday...

Keep up the good work, Florian!  
Thanks again for your awesome program.

---

<div class="post-metadata">

### Author: ![pewe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@pewe](https://community.mp3tag.de/u/pewe)
#### Post date: [March 19, 2016, 12:01pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/7 "2016-03-19T12:01:48Z")

</div>

Hi Florian,

seit gestern hab ich mir nen Wolf gesucht und herumprobiert, am Ende alles noch mal neu installiert - null Effekt = 401 Unauthorized remained to come up ![:angry:](https://community.mp3tag.de/uploads/default/original/1X/ebadaff04ae073d3d1cb3e2f4c6acf132380e5a5.gif ":angry:") ☹

THANKS A TON FOR THIS VERY ADVISE! This is something I can understand. Now, I simply changed HTTP into HTTPS (search for api) in every single Discogs Pone .src contained in SOURCES folder. This is much less work than stabbing around in the dark ... It works! until some professional takes pity on a Discogs Pone update ... ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

Nochmals besten Dank!  
Pewe

---

<div class="post-metadata">

### Author: ![Rephlex](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rephlex/32/315_2.png) [@Rephlex](https://community.mp3tag.de/u/Rephlex)
#### Post date: [March 19, 2016, 1:57pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/8 "2016-03-19T13:57:09Z")

</div>

Great! Changing **http** into **https** in the pone scripts using Notepad [with edit \> replace all] solved it for me as well.

Thanks so much pewe!

---

<div class="post-metadata">

### Author: ![michael\_funk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@michael\_funk](https://community.mp3tag.de/u/michael_funk)
#### Post date: [May 25, 2016, 12:30pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/9 "2016-05-25T12:30:51Z")

</div>

Hi all!

I'm sorry I have to report that neither version 2.73 nor version 2.77 work with discogs, be it [http://api](http://api).... or [https://api](https://api)....

I get the unauthorized-message in any combination of the above.

I'm using Win7 Professional 64bit.

Kind regards,  
Michael

Edit:  
I have to correct myself:

- discogs.src is working, when changing http to https (never used this one ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:"))
- The scripts in discogs\_extended\_21.zip will not work, wether in a http or https version. How do these scripts have to be updated?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 26, 2016, 4:13am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/10 "2016-05-26T04:13:40Z")

</div>

Did you look at  
[[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/789)  
?

---

<div class="post-metadata">

### Author: ![michael\_funk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@michael\_funk](https://community.mp3tag.de/u/michael_funk)
#### Post date: [May 27, 2016, 7:47am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/11 "2016-05-27T07:47:50Z")

</div>

> [@ohrenkino](#):
>
> Did you look at [[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/789) ?

Thank you ohrenkino!  
I missed that one. I added the "[UserAgent]=1" line to all the scripts and with https and that line they are all working again.

Thank you for pointing me in the right direction.

---

<div class="post-metadata">

### Author: ![ricky](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@ricky](https://community.mp3tag.de/u/ricky)
#### Post date: [August 12, 2016, 12:53pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/12 "2016-08-12T12:53:46Z")

</div>

I'm using Mp3Tag 2.78 in win10 x64  
and today I get "401 : UNAUTHORIZED" in discogs:  
 ![](https://i.imgur.com/EkKtnAg.jpg)

In the discogs.src (which is intact, as it ships with the installer) the entries mentioned above have these values:

```
[UserAgent]=1
 [Encoding]=url-utf-8

```

I've also tried replacing all http with https in the discogs.src but it didn't fix the issue.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [August 12, 2016, 2:05pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/13 "2016-08-12T14:05:24Z")

</div>

QUOTE (ricky @ Aug 12 2016, 16:53) \<{POST\_SNAPBACK}\>

I'm using Mp3Tag 2.78 in win10 x64

and today I get "401 : UNAUTHORIZED" in discogs:  
 ![](https://i.imgur.com/EkKtnAg.jpg)

In the discogs.src (which is intact, as it ships with the installer) the entries mentioned above have these values:

```
[UserAgent]=1
 [Encoding]=url-utf-8

```

I've also tried replacing all http with https in the discogs.src but it didn't fix the issue.

  
What about the firewall?  
In Mp3tag try Help\>Look for updates  
You should get a message box: either there are no updates or there is one.  
If you do not get a message box then MP3tag has no internet access and is blocked most likely by your firewall.

---

<div class="post-metadata">

### Author: ![ricky](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@ricky](https://community.mp3tag.de/u/ricky)
#### Post date: [August 12, 2016, 2:13pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/14 "2016-08-12T14:13:55Z")

</div>

> [@ohrenkino](#):
>
> What about the firewall?  
> In Mp3tag try Help\>Look for updates  
> You should get a message box: either there are no updates or there is one.  
> If you do not get a message box then MP3tag has no internet access and is blocked most likely by your firewall.

Thanks for replying.

No, it's not blocked by the firewall. It shows "You are using the latest version. An update is not available".

I just noticed that the issue only occurs if the query contains the dash ('-' ) character.  
e.g.  
with "Star Wars IV - A New Hope" :  
  
it occurs,  
but  
with "Star Wars IV A New Hope" it shows results as expected.

So I suggest the fix to such cases would be the query to be submitted by Mp3Tag to discogs site having all dash characters escaped ( "Star Wars IV - A New Hope")

---

<div class="post-metadata">

### Author: ![malganis](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@malganis](https://community.mp3tag.de/u/malganis)
#### Post date: [January 13, 2017, 3:34am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/15 "2017-01-13T03:34:41Z")

</div>

~~I've been having this error with Mp3tag 2.80. I did replace each "http" for "https" inside the sources file but the problem remains.~~

I was using old configuration files hence the problem. Solved! 🙂

---

<div class="post-metadata">

### Author: ![jacobacci](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jacobacci](https://community.mp3tag.de/u/jacobacci)
#### Post date: [March 4, 2017, 8:51am UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/16 "2017-03-04T08:51:18Z")

</div>

I am getting the "401: UNAUTHORIZED" error when trying to access the discogs database.  
Running 2.81, should be the latest version.  
Are others having this issue too?

EDIT: Tried a few things. It seems that access to discogs works fine if I input something like "Fritz" as the search query.  
I get the 401 error if I input "The Well-Tempered Clavier I BWV 846-849" as the search query.

EDIT2: It's the hyphens. Removing the hyphens makes it work, thanks racky (a few posts back)

---

<div class="post-metadata">

### Author: ![greenflash](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@greenflash](https://community.mp3tag.de/u/greenflash)
#### Post date: [May 11, 2017, 11:15pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/17 "2017-05-11T23:15:14Z")

</div>

Hi guys, I'm having this exact issue for the first time. I upgraded to 2.82 and it didn't get fixed, same 401 error. The album title in this case has two periods (.), if I take them out, it will work ok. Just reporting in case this is something that needs to be fixed in an upcoming version. Thanks!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 26, 2017, 1:24pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/18 "2017-06-26T13:24:06Z")

</div>

> [@Charly G](#):
>
> The album title in this case has two periods (.), if I take them out, it will work ok. Just reporting in case this is something that needs to be fixed in an upcoming version.

This should be fixed with the current Development Build [Mp3tag v2.83a](http://developer.mp3tag.de).

Thanks for reporting!

Kind regards  
– Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:08pm UTC](https://community.mp3tag.de/t/f-discogs-error-401-unauthorized/17761/19 "2018-12-28T14:08:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
