# Websource Script Error "Parameter 3 is unexpected" - What do do now?

**URL:** https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [July 25, 2023, 10:48am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661 "2023-07-25T10:48:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 25, 2023, 10:48am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/1 "2023-07-25T10:48:58Z")

</div>

Since the newest Mp3tag v3.21c, my Websource-Script says:

![image](https://community.mp3tag.de/uploads/default/original/2X/4/4b4ca5f7fd879c9b5cd767160b179eacdaf6d6b7.png)

How can I fix this?

---

<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: [July 25, 2023, 10:51am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/2 "2023-07-25T10:51:04Z")

</div>

I guess you have to remove the 3rd parameter then.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 25, 2023, 10:54am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/3 "2023-07-25T10:54:38Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/e/edbfe07c3b6a7b3734b0eb3fa70ff38a4cb36d93.png)

After commenting out this line  
`debug "on" "C:\Temp\MB\MB_debug_json_EXPANDED_album.txt" "50000"`  
it seems to work again.

The (3rd) number seems to be unnecessary and [invalid](https://docs.mp3tag.de/tag-sources/development/) now?

 ![image](https://community.mp3tag.de/uploads/default/original/2X/b/b3daf10e3406b33fa7fe26519f42f0118f2eb654.png)

---

<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: [July 25, 2023, 10:58am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/4 "2023-07-25T10:58:53Z")

</div>

Thanks for pointing! It seems that I have a inconsistency between the internal function specification for `debug` and the documentation.

It's not active in the release version of your script (I've tested this), but will fix in a few minutes.

---

<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: [July 25, 2023, 11:27am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/5 "2023-07-25T11:27:50Z")

</div>

I've now fixed this with [Mp3tag v3.21d](https://community.mp3tag.de/t/455). You most likely need to make the 3rd parameter strictly numeric: `"50000"` → `50000`

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 25, 2023, 11:41am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/6 "2023-07-25T11:41:31Z")

</div>

I changed the debug lines to the numeric 50000 and tested it successfully.

Thank you for the very fast v3.21d fix.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [August 24, 2023, 11:42am UTC](https://community.mp3tag.de/t/websource-script-error-parameter-3-is-unexpected-what-do-do-now/61661/7 "2023-08-24T11:42:21Z")

</div>

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