# Discogs : 401 error

**URL:** https://community.mp3tag.de/t/discogs-401-error/16244
**Category:** Support
**Created:** [October 17, 2014, 1:18pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244 "2014-10-17T13:18:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![xublu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/71c47a/32.png) [@xublu](https://community.mp3tag.de/u/xublu)
#### Post date: [October 17, 2014, 1:18pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/1 "2014-10-17T13:18:38Z")

</div>

Hi, I just install the latest version of mp3tag (2.64), I created a discogs account and granted access to mp3tag, the first time it work well but the second time i use it i got a 401 error.  
I have try to revoke the authorization and reinstall mp3tag but i always get the 401 error

![](http://img11.hostingpics.net/pics/592561401.jpg)

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

**EDIT : HOW TO FIX IT**
1. go to _C:\Users\YOUR-USER-NAME\AppData\Roaming\Mp3tag\data\sources_
2. Open the file name **discogs.src**
3. Find this two lines : 
  - **[WordSeperator]=+**
  - **[Encoding]=url-utf-8**

and change to:
  - [WordSeperator]= **%20**
  - [Encoding]= **utf-8**

4. Save the modification and enjoy

thank to **Victor Kostas** for the fix

---

<div class="post-metadata">

### Author: ![s\_k](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a587f6/32.png) [@s\_k](https://community.mp3tag.de/u/s_k)
#### Post date: [October 18, 2014, 11:44am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/2 "2014-10-18T11:44:01Z")

</div>

Same problem here, altough I found out that it works if you only use one word for search. As soon as you use multiple words, you'll get that error.  
Since discogs is the most accurate source for tags, it's quite a hassle.

This problem started yesterday, I have since upgraded to 2.65 but the problem remains.

---

<div class="post-metadata">

### Author: ![HAL9000](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@HAL9000](https://community.mp3tag.de/u/HAL9000)
#### Post date: [October 18, 2014, 7:24pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/3 "2014-10-18T19:24:32Z")

</div>

same here

---

<div class="post-metadata">

### Author: ![DJS](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@DJS](https://community.mp3tag.de/u/DJS)
#### Post date: [October 18, 2014, 7:31pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/4 "2014-10-18T19:31:41Z")

</div>

Yes I am getting the same prob. I'd like to continue using this prog but it seems the last few versions have had issues concerning Discogs. I find this prog the most user friendly prog around, so please fix this ASAP.

---

<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: [October 19, 2014, 2:00pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/5 "2014-10-19T14:00:34Z")

</div>

Are you still experiencing the issue with the 401 unauthorized error? I've noticed this too, but it seems to me that it was an issue with the Discogs API itself which seems to be resolved now.

Kind regards  
Florian

---

<div class="post-metadata">

### Author: ![HAL9000](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@HAL9000](https://community.mp3tag.de/u/HAL9000)
#### Post date: [October 19, 2014, 3:45pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/6 "2014-10-19T15:45:21Z")

</div>

yep, still the same problem. dammit, that discogs team never tired messing things up

---

<div class="post-metadata">

### Author: ![xublu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/71c47a/32.png) [@xublu](https://community.mp3tag.de/u/xublu)
#### Post date: [October 20, 2014, 1:48pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/7 "2014-10-20T13:48:41Z")

</div>

I update to 2.65 and only work if I search with one word like **s\_k** said.

I have try several characters

```
, ! ? [] (){} ' / *

```

and the _ **space** _, the dot _ **.** _ and the dash _ **-** _ return a 401 error

look like a parsing problem with the discogs api

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [October 20, 2014, 7:16pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/8 "2014-10-20T19:16:13Z")

</div>

edited....  
Open script in a editor.  
There are 2 possible reasons to fix:

1. Change **[WordSeperator]=+** to **[WordSeperator]=%20**
2. Check [Encoding] value. Try to use **utf-8** instead of **url-utf-8**

---

<div class="post-metadata">

### Author: ![DJS](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@DJS](https://community.mp3tag.de/u/DJS)
#### Post date: [October 21, 2014, 1:49am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/9 "2014-10-21T01:49:55Z")

</div>

Yes I just checked again its 11:48 PM and still cannot connect to Discogs

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [October 21, 2014, 1:58am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/10 "2014-10-21T01:58:20Z")

</div>

Have you tried the default script Discogs with one word only?  
If it works with one word (e.g. Gold) but not with several words (e.g. Over Gold) then the script needs the small fix I describe in my previous post.

---

<div class="post-metadata">

### Author: ![Ralf\_Brinkmann](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Ralf\_Brinkmann](https://community.mp3tag.de/u/Ralf_Brinkmann)
#### Post date: [October 21, 2014, 4:36am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/11 "2014-10-21T04:36:36Z")

</div>

> [@Victor Kostas](#):
>
> Change [WordSeperator] to [WordSeparator] in Discogs.src file (in subfolder %appdata%/mp3tag/data/sources if i'm not mistaken)

I have tried out both your recommandations ([WordSeparator]=+ and [Encoding]=utf-8) but it didn't help here.

As you described I can do a discogs search with either one word only or by replacing the spaces between several words with a + manually.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [October 21, 2014, 6:07am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/12 "2014-10-21T06:07:04Z")

</div>

> [@Ralf Brinkmann](#):
>
> I have tried out both your recommandations ([WordSeparator]=+ and [Encoding]=utf-8) but it didn't help here.
> 
> As you described I can do a discogs search with either one word only or by replacing the spaces between several words with a + manually.

I was too fast when sent the message.  
[WordSep **e** rator]=%20 solved my issue.  
My guess is smth wrong with URL encoding.

---

<div class="post-metadata">

### Author: ![Ralf\_Brinkmann](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Ralf\_Brinkmann](https://community.mp3tag.de/u/Ralf_Brinkmann)
#### Post date: [October 21, 2014, 6:34am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/13 "2014-10-21T06:34:47Z")

</div>

> [@Victor Kostas](#):
>
> [WordSep **e** rator]=%20 solved my issue.

Unfortunately not here. No [WordSep **e** rator]=%20 and no [WordSep **a** rator]=%20. Maybe you have changed anything else.

Edit: Oh, sorry, I was too fast.

If I use

[WordSep **e** rator]=%20

AND

[Encoding]= **utf-8**

it works!

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [October 21, 2014, 7:40am UTC](https://community.mp3tag.de/t/discogs-401-error/16244/14 "2014-10-21T07:40:36Z")

</div>

> [@Ralf Brinkmann](#):
>
> Unfortunately not here. No [WordSep **e** rator]=%20 and no [WordSep **a** rator]=%20. Maybe you have changed anything else.
> 
> Edit: Oh, sorry, I was too fast.
> 
> If I use
> 
> [WordSep **e** rator]=%20
> 
> AND
> 
> [Encoding]= **utf-8**
> 
> it works!

Yes! I use the same.  
Let's hope Florian will find some time to fix this issue.

---

<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: [October 26, 2014, 4:07pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/15 "2014-10-26T16:07:23Z")

</div>

This is now also fixed with Mp3tag v2.65a (see the linked topic for some explanation).

---

<div class="post-metadata">

### Author: ![Merlin-HDH](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@Merlin-HDH](https://community.mp3tag.de/u/Merlin-HDH)
#### Post date: [November 16, 2014, 11:34pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/16 "2014-11-16T23:34:05Z")

</div>

I have just updated v.2.65a but UTF-8 is not replaced, my value is still url-utf-8.  
After changing it is working

---

<div class="post-metadata">

### Author: ![Quisquose](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/q/ea666f/32.png) [@Quisquose](https://community.mp3tag.de/u/Quisquose)
#### Post date: [January 20, 2015, 8:26pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/17 "2015-01-20T20:26:20Z")

</div>

I'm using v2.66 and I'm still getting 401 errors.

I checked the .src file but didn't need to make any changes because it already had [WordSeperator]=%20 and [Encoding]=utf-8 (as was expected with this version).

The track titles in question contained an apostrophe (in the word "I'm") which seems to be the culprit.

---

<div class="post-metadata">

### Author: ![koyaanisqatsy](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/d26b3c/32.png) [@koyaanisqatsy](https://community.mp3tag.de/u/koyaanisqatsy)
#### Post date: [October 8, 2015, 6:44pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/18 "2015-10-08T18:44:34Z")

</div>

my scenario:

1. I used the discogs tagging feature in Mp3tag 2.71 for many months without problems.

2. I suddenly receive this error: "Failed to authenticate using OAuth (1)."

3. I attempt to use the discogs tagging feature in foobar2000. I receive a similar error: "(skipped) Error: Authorization Failed (401) [Is OAuth working?] - (url: [http://api.discogs.com/oauth/request\_token)"](http://api.discogs.com/oauth/request_token)%22)

4. I attempt to fix the error by deleting the Mp3tags application from my discogs settings.

5. Step 4 fails to fix the error.

6. no dialogue within discogs settings to re-authorize Mp3tag. It just seems like the messages are blocked...

7. musicbrainz, amazon and freedb tagging works fine.

I followed the steps in this thread found that my discogs.src file already contains the suggested settings. also tried combinations suggested by other posters:

[WordSeperator]=%20  
[Encoding]=url-utf-8

[WordSeperator]=%20  
[Encoding]=utf-8

[WordSeparator]=%20  
[Encoding]=url-utf-8

[WordSeparator]=%20  
[Encoding]=utf-8

OAuth error still occurs.

I created a new discogs account, to see if my old discogs account was causing the error. I tested the discogs tagging feature in Mp3tag, while logged into my new discogs account. once again, I get an OAuth error.

more details in this thread:  
[Mp3tag v2.71 / foobar2000 - discogs tagging not working: "Failed to authenticate using OAuth (1).](https://community.mp3tag.de/t/17288/1)

---

<div class="post-metadata">

### Author: ![Snake3y3s](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ecccb3/32.png) [@Snake3y3s](https://community.mp3tag.de/u/Snake3y3s)
#### Post date: [August 19, 2020, 2:32pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/20 "2020-08-19T14:32:46Z")

</div>

im getting this error now too  
was all working fine yesterday

went to discogs now and deleted my auth key for MP3Tag  
but MP3Tag does not bring up a dialogue asking you to re-auth or input a new key.

---

<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 19, 2020, 2:35pm UTC](https://community.mp3tag.de/t/discogs-401-error/16244/21 "2020-08-19T14:35:00Z")

</div>

there are some more threads on this error:

> [@401 Unauthorized: Discogs](https://community.mp3tag.de/t/401-unauthorized-discogs/42877/):
>
> Getting "Failed to authenticate using OAuth (1)." when using Discogs as tag source. I've tried revoking authorisation and installing 2.89c but no luck.

[Next page](https://community.mp3tag.de/t/discogs-401-error/16244.md?page=2)
