HTTPs request not working for mobile plugins

In my plugin, I make a request using obsidian.request api. This works on desktop, however the API request fails on mobile (Android) giving me this error.

here is my code that makes the request:

const getAllNotesFirebase = async (email: string, password: string) => {
  let notes = [];
  try {
    const body = {
        'email': email,
        'password': password,
    const config = {
        method: 'post',
        url: '',
        contentType: 'application/json',
        body: JSON.stringify(body),
    const res = await request(config);
    notes = JSON.parse(res);
  } catch (e) {
      throw 'Failed to retrieve notes from the database - Check credentials in settings & internet connection';
  return notes;

If i remove the “body” field in the request it works. That being said, it’s odd that we can’t send a request with a body in mobile…

1 Like

Did you solve the problem with http-request in obsidian for android ?