# Help with Metadata Agent HTTP Error 302: I'm stumped

**URL:** <https://forums.plex.tv/t/help-with-metadata-agent-http-error-302-im-stumped/33197>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [April 22, 2013, 4:07am UTC](https://forums.plex.tv/t/help-with-metadata-agent-http-error-302-im-stumped/33197 "2013-04-22T04:07:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipieye](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@pipieye](https://forums.plex.tv/u/pipieye)\
**Post date:** [April 22, 2013, 4:07am UTC](https://forums.plex.tv/t/help-with-metadata-agent-http-error-302-im-stumped/33197/1 "2013-04-22T04:07:22Z")

</div>

I need help. The website I was hitting modified something on their web pages.

The metadata agent I wrote was working fine, but now, it is giving the HTTP Error 302: on the following line:

&nbsp;

japmovie = HTML.ElementFromURL(JAP\_DETAIL\_PAGE % query)

&nbsp;

If I use a regular browser with the same URL, it works.

&nbsp;

Any assistance appreciated.

&nbsp;

&nbsp;

HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.

The last 30x error message was:

Found

&nbsp;

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [April 22, 2013, 11:26am UTC](https://forums.plex.tv/t/help-with-metadata-agent-http-error-302-im-stumped/33197/2 "2013-04-22T11:26:09Z")

</div>

Can you please provide us with an example url and the metadata agent code?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:15pm UTC](https://forums.plex.tv/t/help-with-metadata-agent-http-error-302-im-stumped/33197/3 "2019-12-20T23:15:35Z")

</div>

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