1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Join our Telegram chat: https://t.me/a_parser_en
    Dismiss Notice

Issues with "allow_outside_files"

Discussion in 'A-Parser Support Forum' started by scrapefun, Apr 16, 2019.

  1. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    174
    Likes Received:
    30
    I'm using API to automate creating tasks.

    On my servers I usually have multiple instances of A-parser running on different ports (9091, 9092, 9093, etc)

    I've added the "allow_outside_files: 1" line to the config.txt files for each instance and for the most part I'm able to use query files outside the normal folders fine.

    But on a couple servers I till still get "Queries file must be in queries or results folder!" error despite having added the "allow_outside_files" line.

    Error will only happen on a single instance. All other instances work fine.

    Usually this happens on port 9091 but not always

    Any ideas?
     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,377
    Likes Received:
    2,107
    Hello.
    Specify, please, such questions:
    1) show all the contents of config.txt file
    2) in which folder is the parser (full path)?
    3) show full API request that is being called (including the full path of the file)
    4) version of A-Parser and OS
     
  3. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    174
    Likes Received:
    30
    The problem was the config.txt file was not UTF-8 encoded (probably changed it by accident when editing) Once I changed file encoding to UTF-8 everything works as it should.
     
    Support likes this.

Share This Page