Skip to content

model save with tf.io.http and custom headers do not work #2632

@batrlatom

Description

@batrlatom

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

1.3.1

Browser version

Chrome

Describe the problem or feature request

I am trying to save tfjs model on server with additional headers, but headers are not present in the request.

Code to reproduce the bug / link to feature request

web:
await model.save(tf.io.browserHTTPRequest(
'http://localhost:5000/upload',
{method: 'POST', headers: {'class': 'Dog'}}));

server:
https://gist.github.com/dsmilkov/1b6046fd6132d7408d5257b0976f7864

  • 'print(request.headers)' in /upload method

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

Metadata

Metadata

Assignees

Labels

apitype:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions