AltServer-Linux icon indicating copy to clipboard operation
AltServer-Linux copied to clipboard

Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.

Open kirillsurkov opened this issue 1 year ago • 50 comments

Hi! AltStore stopped working for me after updating to iOS 16.5.1 When I try to refresh the app I get this error:

AltServer.ServerError 2000
Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.

kirillsurkov avatar Jul 01 '23 16:07 kirillsurkov

Same error with iOS 16.1.1, so it most likely wasn't caused by updating D: Also, any action (as in, downloading an app either through AltStore or AltServer, refreshing, retrieving appids, etc.) seems to prompt it.

PinguThePenguin007 avatar Jul 01 '23 21:07 PinguThePenguin007

Same error. I guess you shouldn't update to 16.5.1 just yet.

wkddudwo avatar Jul 01 '23 22:07 wkddudwo

Same error here, iOS 16.6 beta

boat1337 avatar Jul 02 '23 11:07 boat1337

Same error. I guess you shouldn't update to 16.5.1 just yet.

Doesn't seem to be an iOS problem because @PinguThePenguin007 mentioned it not working on 16.1.1, I'm on 16.5 and I have the problem, and @boat1337 is on 16.6 beta.

WillDera avatar Jul 02 '23 13:07 WillDera

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

  1. Download an alternative anisette-server from https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

  1. Extract it, mark it as executable chmod +111 anisette-server

  2. Run it like this: ./anisette-server -n 127.0.0.1 -p 6969 These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)

  3. Open a new window/screen/etc.

  4. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

  5. Run AltServer, it should work! :DDD

PinguThePenguin007 avatar Jul 02 '23 16:07 PinguThePenguin007

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

  1. Download an alternative anisette-server from

https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

  1. Extract it, mark it as executable

chmod +111 anisette-server

  1. Run it like this:

./anisette-server -n 127.0.0.1 -p 6969

These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)

  1. Open a new window/screen/etc.

  2. Export the enviroment variable for AltServer so it connects to our server

export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

  1. Run AltServer, it should work! :DDD

Worked perfectly, Thank you!

WillDera avatar Jul 02 '23 17:07 WillDera

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

1. Download an alternative anisette-server from
   https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

3. Extract it, mark it as executable
   chmod +111 anisette-server

4. Run it like this:
   ./anisette-server -n 127.0.0.1 -p 6969
   These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)

5. Open a new window/screen/etc.

6. Export the enviroment variable for AltServer so it connects to our server
   export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

7. Run AltServer, it should work! :DDD

1- Is it safe?

2- What do I put after -n and -p? (Google translator)

LLuanZZ avatar Jul 02 '23 18:07 LLuanZZ

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

1. Download an alternative anisette-server from
   https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

3. Extract it, mark it as executable
   chmod +111 anisette-server

4. Run it like this:
   ./anisette-server -n 127.0.0.1 -p 6969
   These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)

5. Open a new window/screen/etc.

6. Export the enviroment variable for AltServer so it connects to our server
   export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

7. Run AltServer, it should work! :DDD

can confirm, solved it by switching anisette servers

boat1337 avatar Jul 02 '23 19:07 boat1337

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

  1. Download an alternative anisette-server from https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

  1. Extract it, mark it as executable chmod +111 anisette-server
  2. Run it like this: ./anisette-server -n 127.0.0.1 -p 6969 These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)
  3. Open a new window/screen/etc.
  4. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  5. Run AltServer, it should work! :DDD

you're right; that does solve the problem. thank you!

xeiAiex avatar Jul 02 '23 19:07 xeiAiex

you're right; that does solve the problem. thank you!

Did you put the same Hostname and Port? (Google translator)

LLuanZZ avatar Jul 02 '23 19:07 LLuanZZ

you need to use your own ip address. find it with something like ip addr or ifconfig. port 6969 worked for me.

xeiAiex avatar Jul 02 '23 20:07 xeiAiex

127.0.0.1 is localhost, so it should work fine :D

1- Is it safe?

about as safe as running AltServer-Linux in the first place, i think :D

2- What do I put after -n and -p? (Google translator)

-n - your ip address / 127.0.0.1 -p - whatever port you like, just make sure it doesn't conflict with anything

PinguThePenguin007 avatar Jul 02 '23 20:07 PinguThePenguin007

127.0.0.1 is localhost, so it should work fine :D

1- Is it safe?

about as safe as running AltServer-Linux in the first place, i think :D

2- What do I put after -n and -p? (Google translator)

-n - your ip address / 127.0.0.1 -p - whatever port you like, just make sure it doesn't conflict with anything

He crashed in this part, what do I do now? 0C3EA8CA-8806-4FB4-875D-4FF5108FF84B

LLuanZZ avatar Jul 02 '23 20:07 LLuanZZ

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

WillDera avatar Jul 02 '23 20:07 WillDera

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

I didn't understand what to do in step 5 and 6

LLuanZZ avatar Jul 02 '23 21:07 LLuanZZ

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

I didn't understand what to do in step 5 and 6

In a new terminal window, run the command below:

export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

Then start AltServer (however you used to) on your PC

Finally, connect your device to your PC as you usually do when refreshing/installing AltStore apps and go ahead with the refresh/install

WillDera avatar Jul 03 '23 00:07 WillDera

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

I didn't understand what to do in step 5 and 6

In a new terminal window, run the command below:

export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

Then start AltServer (however you used to) on your PC

Finally, connect your device to your PC as you usually do when refreshing/installing AltStore apps and go ahead with the refresh/install

It doesn't work.

B6C159A4-D738-4C88-BDEA-2F69ABECCCA8

LLuanZZ avatar Jul 03 '23 14:07 LLuanZZ

@LLuanZZ try to run AltServer without sudo

kirillsurkov avatar Jul 03 '23 15:07 kirillsurkov

now another error appears: D957EE1C-7242-4B0D-A262-D02694328655

LLuanZZ avatar Jul 03 '23 17:07 LLuanZZ

now another error appears:

D957EE1C-7242-4B0D-A262-D02694328655

I'm not sure what this error means. @PinguThePenguin007 care to look?

WillDera avatar Jul 03 '23 17:07 WillDera

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

I didn't understand what to do in step 5 and 6

In a new terminal window, run the command below: export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969 Then start AltServer (however you used to) on your PC Finally, connect your device to your PC as you usually do when refreshing/installing AltStore apps and go ahead with the refresh/install

It doesn't work.

B6C159A4-D738-4C88-BDEA-2F69ABECCCA8

the port you specified in the anisette server and the port you enter before launching AltServer must not differ, you seemed to enter 6969 in anisette-server and 8659 in ALTSERVER_ANISETTE_SERVER

weird though, it shouldn't have fallen back to trying connecting to the default server, when i messed up earlier while trying to setup this, it just told me it couldn't connect to the address i specified and didn't do anything else...

maybe root access somehow affected it? i have no clue, but still, you should try entering the same port in both servers

PinguThePenguin007 avatar Jul 03 '23 22:07 PinguThePenguin007

He crashed in this part, what do I do now?

Doesnt look like a crash, that's what is should show. Do the next step:

  1. Open a new window/screen/etc.
  2. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  3. Run AltServer, it should work! :DDD

I didn't understand what to do in step 5 and 6

In a new terminal window, run the command below: export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969 Then start AltServer (however you used to) on your PC Finally, connect your device to your PC as you usually do when refreshing/installing AltStore apps and go ahead with the refresh/install

It doesn't work. B6C159A4-D738-4C88-BDEA-2F69ABECCCA8

the port you specified in the anisette server and the port you enter before launching AltServer must not differ, you seemed to enter 6969 in anisette-server and 8659 in ALTSERVER_ANISETTE_SERVER

weird though, it shouldn't have fallen back to trying connecting to the default server, when i messed up earlier while trying to setup this, it just told me it couldn't connect to the address i specified and didn't do anything else...

maybe root access somehow affected it? i have no clue, but still, you should try entering the same port in both servers

It's on the same port.

I got my Apple ID emails mixed up, corrected it to the correct email, ran AltServer again and it showed this:

Alert: Could not install crunchyroll.ipa to unknown. Unknown services response error. (-1) Press any key to continue... a Error: com.rileytestut.AltServer.Localized (-1). Finished!

LLuanZZ avatar Jul 04 '23 01:07 LLuanZZ

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

  1. Download an alternative anisette-server from https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

  1. Extract it, mark it as executable chmod +111 anisette-server
  2. Run it like this: ./anisette-server -n 127.0.0.1 -p 6969 These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)
  3. Open a new window/screen/etc.
  4. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  5. Run AltServer, it should work! :DDD

First of all, thank you for your hard work. Unfortunately, I have a Raspberry Pi 4, but it doesn't work as smoothly as the anisette server works in Ubuntu. (aarch64, armv7)

Below is the error.

./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by ./anisette-server-aarch64) ./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ./anisette-server-aarch64) ./anisette-server-aarch64: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./anisette-server-aarch64)

I think it will be resolved in the near future, but it still doesn't work, so I hope it helps those who see this article.

wkddudwo avatar Jul 04 '23 09:07 wkddudwo

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

1. Download an alternative anisette-server from
   https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

3. Extract it, mark it as executable
   chmod +111 anisette-server

4. Run it like this:
   ./anisette-server -n 127.0.0.1 -p 6969
   These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)

5. Open a new window/screen/etc.

6. Export the enviroment variable for AltServer so it connects to our server
   export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

7. Run AltServer, it should work! :DDD

I have followed your guide and still get these errors...

Installing app...
Received response status code: 500
parse anisette data ret
Exception:Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.
Alert: Installation Failed
    Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.
Press any key to continue...

and I can confirm the alternative server is indeed running by going to http://127.0.0.1:6969 and seeing the json provided. And I also ran export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969

Giuca002 avatar Jul 04 '23 14:07 Giuca002

@PinguThePenguin007 Any suggestions on how to solve my problem and @Giuca002 ?

LLuanZZ avatar Jul 04 '23 21:07 LLuanZZ

Nope im getting the same error here

Giuca002 avatar Jul 05 '23 01:07 Giuca002

I have found the source of the issue, it seems that the default anisette-server has changed something and broke AltServer-Linux

Here's my guide to get it running again:

  1. Download an alternative anisette-server from https://github.com/Dadoum/Provision/releases/tag/2.1.0

Your architecture may differ, so i will refer to the executable as anisette-server

  1. Extract it, mark it as executable chmod +111 anisette-server
  2. Run it like this: ./anisette-server -n 127.0.0.1 -p 6969 These are my hostname (argument -n) and port (-p) of choice, you may pick something else :)
  3. Open a new window/screen/etc.
  4. Export the enviroment variable for AltServer so it connects to our server export ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
  5. Run AltServer, it should work! :DDD

Didn't work for me.. same error

BleakFox avatar Jul 05 '23 11:07 BleakFox

Does this error occur with the Windows version of altserver as well?

I looked at the commits a few days ago and it doesn't seem like the upstream repo was updated in any regards to this.

Does upstream use a different anisette server by default?

Curve avatar Jul 05 '23 11:07 Curve

I don't think so, because in AltServer for Windows, the Anisette server is not used. The server is on your own PC (I think).

LLuanZZ avatar Jul 05 '23 12:07 LLuanZZ

Can confirm this is an Anisette issue and not an iOS version issue, as I also had this problem on 15.6. Thanks for the fix!

onyxcode avatar Jul 05 '23 15:07 onyxcode