list_collections() output doesn't update when sia_url (or ssa_url) is changed · Issue #3479 · astropy/astroquery · GitHub
Skip to content

list_collections() output doesn't update when sia_url (or ssa_url) is changed #3479

Open

Description

@jaladh-singhal
from astroquery.ipac.irsa import Irsa
Irsa.sia_url = "https://irsadev.ipac.caltech.edu/simulated/SIA"
Irsa.list_collections(servicetype="SIA")

outputs a table with 111 rows from the default SIA endpoint ("https://irsadev.ipac.caltech.edu/SIA") instead of 4 rows present at the simulated endpoint. This is problematic because Irsa.query_sia() is correctly talking to the updated sia_url so I was expecting list_collections() to behave similarly to tell me which collection id/name I can use.

This probably is a duplicate since we talked about it at some point. If so, feel free to close it and cross-link existing issue.

Activity

  1. bsipocz commented on Dec 10, 2025

    @bsipocz
    Member

    yes, you also need to change the TAP endpoint as list_collections() is in fact runs a TAP query.

    I was experimenting a bit with having a BASE url, but I couldn't really make it work with the current config system while also keeping the TAP/SIA urls configurable.

  2. jaladh-singhal commented on Dec 10, 2025

    @jaladh-singhal
    ContributorAuthor

    yes, you also need to change the TAP endpoint as list_collections() is in fact runs a TAP query.

    Oh, I didn't realize that - I just tried, this fixes it! Feel free to close it - although I see the documentation label, so probably this aspect can be documented.

    I was experimenting a bit with (having a BASE url)[https://github.com/https://github.com//issues/3431], but I couldn't really make it work with the current config system while also keeping the TAP/SIA urls configurable.

    Yes changing base url will be a good catch-all for cases like this!

  3. bsipocz commented on Dec 10, 2025

    @bsipocz
    Member

    Oh, I didn't realize that - I just tried, this fixes it! Feel free to close it - although I see the documentation label, so probably this aspect can be documented.

    Yeap, this will be documented, even though it will only affect us IRSA people (as no one else can use the alternative urls anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions