Skip to content

Newer version on the server. No operation done. #49

@jfcere

Description

@jfcere

Hi,

Not sure if this is the right place to report this but for a couple of days now when trying to push resource to Transifex I am getting the following error message...

[11:29:47] Starting 'transifex:push'...
[11:29:48] Newer version of locale.json on the server. No operation done
[11:29:48] Finished 'transifex:push' after 521 ms

Here is my complete gulp file...

const argv = require('yargs').argv;
const gulp = require('gulp');
const gulpTransifex = require('gulp-transifex');
const osHomedir = require('os-homedir');

function verifyParameters() {
  if (!argv.project) {
    console.error('project parameter must be supplied');
  }
}

function createClient() {
  // credential file must be place in your user home directory (i.e. c:\users\myname\transifexrc.json)
  const config = require(osHomedir() + '/transifexrc.json');

  const env = config.env;
  const options = {
    user: config.transifex[env].user,
    password: config.transifex[env].password,
    project: argv.project,
    local_path: './src/resources/src/'
  };

  return gulpTransifex.createClient(options);
}

gulp.task('transifex:push', function () {
  verifyParameters();
  return gulp.src('./src/resources/src/en/locale.json')
    .pipe(createClient().pushResource());
});

gulp.task('transifex:pull', function () {
  verifyParameters();
  return gulp.src('./src/resources/src/en/locale.json')
    .pipe(createClient().pullResource());
});

I've waited a couple of days before to retry thinking it could be related to timezone or whatever but still getting the error.

Any idea what would cause this?

In Transifex documentation they mention the use of --force flag to avoid checking for modification time ... is there any way to provide the flag when using gulp-transifex?

Reference for --force flag: https://docs.transifex.com/client/push#command-options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions