Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

501 (Unsupported method ('POST')) in 49.0.4 ipfs-http-client #3593

@dxtr85

Description

@dxtr85
  • Version:
    49.0.4 (I can not read version number, since for every API query I get 501 response.)

  • Platform:
    Linux ThinkPad 5.4.0-66-generic Add /api/v0/config/show endpoint #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    Brave 1.21.74 Chromium: 89.0.4389.72
    Firefox 86.0 (64-bit)

  • Subsystem:
    ipfs-http-client

Severity:

High - The main functionality of the application does not work, API breakage, repo format breakage, etc.

Description:

I cloned PubSub example from one of ipfs repos, changed client script to latest from 'https://cdn.jsdelivr.net/npm/ipfs-http-client/dist/index.js', and started it locally after CORS issues.
In response to ipfs.id() issued in console I received 501 - Unsupported method POST.
I expected an id of my local ipfs instance.

Steps to reproduce the error:

  1. Follow instructions from https://blog.ipfs.io/2019-08-29-pubsub-in-the-browser/
  2. Instead of "lite" client use one mentioned earlier from cdn.
  3. Run example app in a browser with CORS set properly.
    Screenshot from 2021-03-16 16-02-16

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/analysisNeeds further analysis before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions