# iReporter Json Error

**URL:** <https://forums.kodeco.com/t/ireporter-json-error/66913>\
**Category:** iOS\
**Created:** [April 7, 2019, 11:59am UTC](https://forums.kodeco.com/t/ireporter-json-error/66913 "2019-04-07T11:59:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackchains](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hackchains/32/81494_2.png) [@hackchains](https://forums.kodeco.com/u/hackchains)\
**Post date:** [April 7, 2019, 11:59am UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/1 "2019-04-07T11:59:39Z")

</div>

After following the tutorial for iReporter, I am seeing an Error when attempting to login or register. The error is:

Error  
Expected content type {“text/json”, “application/json”, “text/javascript”)}, got text/html

I am not sure whats creating the error. I am using

#define kAPIHost @“[http://192.168.1.11:8888](http://192.168.1.11:8888)”

and

#define kAPIPath @“Hi2/”

for the path. Any ideas?

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [April 17, 2019, 6:24pm UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/2 "2019-04-17T18:24:48Z")

</div>

Hi @hackchains, could you post a code snippet and or the error from the debugger so we can try to help out better? I’m unable to understand how to solve this issue properly.

Best,  
Gina

---

<div class="post-metadata">

**Author:** ![hackchains](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hackchains/32/81494_2.png) [@hackchains](https://forums.kodeco.com/u/hackchains)\
**Post date:** [May 2, 2019, 11:23am UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/3 "2019-05-02T11:23:48Z")

</div>

Hey, I got it to work but now it’s saying ‘registration failed’

---

<div class="post-metadata">

**Author:** ![hackchains](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hackchains/32/81494_2.png) [@hackchains](https://forums.kodeco.com/u/hackchains)\
**Post date:** [May 2, 2019, 11:24am UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/4 "2019-05-02T11:24:37Z")

</div>

my debugger isn’t outputting anything. it’s weird. i’ll keep troubleshooting

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 8, 2019, 11:48pm UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/5 "2019-07-08T23:48:55Z")

</div>

@hackchains Do you still have issues with this?

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [September 21, 2019, 4:03am UTC](https://forums.kodeco.com/t/ireporter-json-error/66913/6 "2019-09-21T04:03:19Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
