# Can't Link to Battle.net account

**URL:** <https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159>\
**Category:** Warcraft Logs\
**Created:** [April 15, 2017, 8:28pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159 "2017-04-15T20:28:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bGiraffe](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/bgiraffe/32/519_2.png) [@bGiraffe](https://forums.combatlogforums.com/u/bGiraffe)\
**Post date:** [April 15, 2017, 8:28pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/1 "2017-04-15T20:28:10Z")

</div>

Hi all,

After i change server, i relink my [Battle.net](http://Battle.net) account to my WCL account, it doesn’t show the correct guild (actually i have change my guild at the new server twice), and today i try to relink my account again, i got the following message when i use the link account URL at account setting page, it redirect me to [Battle.net](http://Battle.net) and i sucessfully login and authorized, when it go back to [warcraftlogs.com](http://warcraftlogs.com), i got this:

Unhandled Exception  
Message:

Undefined index: access\_token

Location:

/var/app/current/application/controllers/accounts.php on line 377

Any help? Thank you~

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [April 15, 2017, 10:42pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/2 "2017-04-15T22:42:20Z")

</div>

Make sure you’re using [www.warcraftlogs.com](http://www.warcraftlogs.com) to do this.

---

<div class="post-metadata">

**Author:** ![bGiraffe](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/bgiraffe/32/519_2.png) [@bGiraffe](https://forums.combatlogforums.com/u/bGiraffe)\
**Post date:** [April 15, 2017, 11:09pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/3 "2017-04-15T23:09:50Z")

</div>

Thanks for the reply!!

I’m using [www.warcraftlogs.com](http://www.warcraftlogs.com) to do this for sure, the URL redirect back to [warcraftlogs.com](http://warcraftlogs.com) from [Battle.net](http://Battle.net) is something like:

[https://www.warcraftlogs.com/accounts/battlenetlogin?code=xxxxxxxxxxxxxxxxxxxxx&state=TW-link](https://www.warcraftlogs.com/accounts/battlenetlogin?code=xxxxxxxxxxxxxxxxxxxxx&state=TW-link)

I don’t know what’s wrong, may be i should register a new account for a try?

---

<div class="post-metadata">

**Author:** ![bGiraffe](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/bgiraffe/32/519_2.png) [@bGiraffe](https://forums.combatlogforums.com/u/bGiraffe)\
**Post date:** [April 15, 2017, 11:24pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/4 "2017-04-15T23:24:26Z")

</div>

I think i found the problem, when i click the link at WCL, it redirect me to [tw.battle.net](http://tw.battle.net), but [battle.net](http://battle.net) automatically redirect me to [kr.battle.net](http://kr.battle.net) for oauth access, therefore when it come back to WCL, it went wrong, if i change the URL to:

[https://www.warcraftlogs.com/accounts/battlenetlogin?code=xxxxxxxxxxxxxxxxxxxxx&state=KR-link](https://www.warcraftlogs.com/accounts/battlenetlogin?code=xxxxxxxxxxxxxxxxxxxxx&state=KR-link)

It will success but my account will said i have link to a KR region battlenet account, however my battle tag is correct but no charater will load correctly.

Is the [Battle.net](http://Battle.net) oauth API changed or something? I think Korea region is represent Asia server and taking care of Taiwan account too?

---

<div class="post-metadata">

**Author:** ![Dorlier](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dorlier](https://forums.combatlogforums.com/u/Dorlier)\
**Post date:** [April 16, 2017, 4:54am UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/5 "2017-04-16T04:54:24Z")

</div>

same here.  
connect another region will success but my account region is TW.

---

<div class="post-metadata">

**Author:** ![Thanatiki](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Thanatiki](https://forums.combatlogforums.com/u/Thanatiki)\
**Post date:** [April 19, 2017, 3:37pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/6 "2017-04-19T15:37:15Z")

</div>

having sort of the same issue.did my registration and link my account.the battle tag is correct but when i try to link it to some character return me to same page and the URL change :

[https://www.warcraftlogs.com/?access\_failed=true](https://www.warcraftlogs.com/?access_failed=true)

any action that might fix this problem?

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [April 19, 2017, 3:48pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/7 "2017-04-19T15:48:26Z")

</div>

So trying to understand this. Are you guys saying that [tw.battle.net](http://tw.battle.net) is not being used by [battle.net](http://battle.net) itself to authorize you? You are being redirected to [kr.battle.net](http://kr.battle.net)?

---

<div class="post-metadata">

**Author:** ![bGiraffe](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/bgiraffe/32/519_2.png) [@bGiraffe](https://forums.combatlogforums.com/u/bGiraffe)\
**Post date:** [April 19, 2017, 4:51pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/8 "2017-04-19T16:51:13Z")

</div>

I think API of Blizzard has changed or something, because TW region is under ASIA district, and the API call will direct to [kr.battle.net](http://kr.battle.net). I am a web developer, i can sure that something WCL has to been checked for TW region [Battle.net](http://Battle.net) connect. Are you offical staff of WCL? Or can you transfer this case to WCL? Thank you.

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [April 19, 2017, 5:06pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/9 "2017-04-19T17:06:27Z")

</div>

> [@bGiraffe](#):
>
> I think i found the problem, when i click the link at WCL, it redirect me to [tw.battle.net](http://tw.battle.net), but [battle.net](http://battle.net) automatically redirect me to [kr.battle.net](http://kr.battle.net) for oauth access, therefore when it come back to WCL, it went wrong, if i change the URL to:

Try it now and let me know if it works.

---

<div class="post-metadata">

**Author:** ![bGiraffe](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/bgiraffe/32/519_2.png) [@bGiraffe](https://forums.combatlogforums.com/u/bGiraffe)\
**Post date:** [April 19, 2017, 6:00pm UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/10 "2017-04-19T18:00:08Z")

</div>

Oh great!!! It’s solved, thank you so much for your help!! Great work!

---

<div class="post-metadata">

**Author:** ![Dorlier](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dorlier](https://forums.combatlogforums.com/u/Dorlier)\
**Post date:** [April 21, 2017, 7:18am UTC](https://forums.combatlogforums.com/t/cant-link-to-battle-net-account/3159/11 "2017-04-21T07:18:23Z")

</div>

It works now. ty guys.
