Libcjson1 could not be fetched

I am building my first snap and keep getting this error.
Failed to fetch package: The item '/home/xxxxx/.cache/snapcraft/download/libcjson1_1.7.17-1ubuntu0.1~esm2_amd64.deb' could not be fetched: 401 Unauthorized [IP: 91.189.91.46 443].

I have changed the yaml multiple ways and even added the file into my parts folder in the source.

      # Use the local .deb file
      dpkg -i $SNAPCRAFT_PART_SRC/libcjson1_1.7.17-1ubuntu0.1~esm2_amd64.deb || true
      chmod 755 $SNAP/usr/lib/x86_64-linux-gnu/libcjson.so.1.7.17
      chmod 755 $SNAP/usr/lib/x86_64-linux-gnu/libcjson_utils.so.1.7.17
2025-01-06 13:50:58.494   401  Unauthorized [IP: 185.125.190.24 443]
2025-01-06 13:50:58.496 Failed to fetch package: The item '/home/xxxx/.cache/snapcraft/download/libcjson1_1.7.17-1ubuntu0.1~esm2_amd64.deb' could not be fetched: 401  Unauthorized [IP: 185.125.190.24 443].

Has anyone encountered this type of error before?

HTTP error “401 Unauthorized” is because you’re building a snap which consumes parts which are published via Ubuntu Pro’s ESM (Extended Security Maintenance) product.

The packages in the ESM repositories require authentication to access.